| 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);
|
| }
|
|
|
|
|
|
|