These helper methods of StubCompiler are static methods. If they are only called from member functions of StubCompiler and its subclasses, with their macro assemblers, then they could be made member functions, but this would need to be checked.
As static methods, they don't have access to member fields (of course). On 2009/07/16 12:36:20, Kasper Lund wrote: > LGTM! > http://codereview.chromium.org/155631/diff/8/11 > File src/x64/stub-cache-x64.cc (right): > http://codereview.chromium.org/155631/diff/8/11#newcode341 > Line 341: // Load the global or builtins object from the current context. > Why are we passing masm to this function? Isn't the assembler built into the > StubCompiler? Maybe we should fix that later. http://codereview.chromium.org/155631 --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
