Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(936)

Unified Diff: src/x64/macro-assembler-x64.h

Issue 1478303002: Revert of [runtime] Replace global object link with native context link in all contexts. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/x64/macro-assembler-x64.h
diff --git a/src/x64/macro-assembler-x64.h b/src/x64/macro-assembler-x64.h
index 6408e6d6f76e25ad67802797d277c25fdab93442..cd795a70f60cbe1487e705a18f33a23e3262dafa 100644
--- a/src/x64/macro-assembler-x64.h
+++ b/src/x64/macro-assembler-x64.h
@@ -398,6 +398,9 @@
void InvokeBuiltin(int native_context_index, InvokeFlag flag,
const CallWrapper& call_wrapper = NullCallWrapper());
+ // Store the function for the given builtin in the target register.
+ void GetBuiltinFunction(Register target, int native_context_index);
+
// ---------------------------------------------------------------------------
// Smi tagging, untagging and operations on tagged smis.
@@ -1351,15 +1354,8 @@
// Find the function context up the context chain.
void LoadContext(Register dst, int context_chain_length);
- // Load the global object from the current context.
- void LoadGlobalObject(Register dst) {
- LoadNativeContextSlot(Context::EXTENSION_INDEX, dst);
- }
-
// Load the global proxy from the current context.
- void LoadGlobalProxy(Register dst) {
- LoadNativeContextSlot(Context::GLOBAL_PROXY_INDEX, dst);
- }
+ void LoadGlobalProxy(Register dst);
// Conditionally load the cached Array transitioned map of type
// transitioned_kind from the native context if the map in register
@@ -1372,8 +1368,8 @@
Register scratch,
Label* no_map_match);
- // Load the native context slot with the current index.
- void LoadNativeContextSlot(int index, Register dst);
+ // Load the global function with the given index.
+ void LoadGlobalFunction(int index, Register function);
// Load the initial map from the global function. The registers
// function and map can be the same.
@@ -1698,8 +1694,8 @@
}
-inline Operand NativeContextOperand() {
- return ContextOperand(rsi, Context::NATIVE_CONTEXT_INDEX);
+inline Operand GlobalObjectOperand() {
+ return ContextOperand(rsi, Context::GLOBAL_OBJECT_INDEX);
}
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698