Reviewers: Igor Sheludko,

Description:
[stubs] Further optimize Load/StoreGlobalViaContext stubs.

a) Don't use separate read/write slots for context globals, but share the
   same slot, which reduces the number of initial misses, and also saves
   some memory for large scripts.
b) No need to pass the name explicitly to the stubs; the runtime can
   extract the name from the ScopeInfo (the extension of the
   ScriptContext) on-demand easily without any performance impact.

[email protected]

Please review this at https://codereview.chromium.org/1250413002/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+103, -157 lines):
  M src/compiler/ast-graph-builder.cc
  M src/compiler/js-generic-lowering.cc
  M src/contexts.cc
  M src/flag-definitions.h
  M src/hydrogen.cc
  M src/hydrogen-instructions.h
  M src/hydrogen-instructions.cc
  M src/ia32/code-stubs-ia32.cc
  M src/ia32/full-codegen-ia32.cc
  M src/ia32/interface-descriptors-ia32.cc
  M src/ia32/lithium-codegen-ia32.cc
  M src/ia32/lithium-ia32.h
  M src/ia32/lithium-ia32.cc
  M src/interface-descriptors.h
  M src/interface-descriptors.cc
  M src/objects.h
  M src/runtime/runtime.h
  M src/runtime/runtime-object.cc
  M src/scopeinfo.cc
  M src/scopes.cc
  M src/x64/code-stubs-x64.cc
  M src/x64/full-codegen-x64.cc
  M src/x64/interface-descriptors-x64.cc
  M src/x64/lithium-codegen-x64.cc
  M src/x64/lithium-x64.h
  M src/x64/lithium-x64.cc


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to