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

Side by Side Diff: src/ia32/macro-assembler-ia32.cc

Issue 1611613002: [assembler] Remove obsolete InvokeBuiltin macro. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 months 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 unified diff | Download patch
« no previous file with comments | « src/ia32/macro-assembler-ia32.h ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if V8_TARGET_ARCH_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/base/division-by-constant.h" 8 #include "src/base/division-by-constant.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 2129 matching lines...) Expand 10 before | Expand all | Expand 10 after
2140 void MacroAssembler::InvokeFunction(Handle<JSFunction> function, 2140 void MacroAssembler::InvokeFunction(Handle<JSFunction> function,
2141 const ParameterCount& expected, 2141 const ParameterCount& expected,
2142 const ParameterCount& actual, 2142 const ParameterCount& actual,
2143 InvokeFlag flag, 2143 InvokeFlag flag,
2144 const CallWrapper& call_wrapper) { 2144 const CallWrapper& call_wrapper) {
2145 LoadHeapObject(edi, function); 2145 LoadHeapObject(edi, function);
2146 InvokeFunction(edi, expected, actual, flag, call_wrapper); 2146 InvokeFunction(edi, expected, actual, flag, call_wrapper);
2147 } 2147 }
2148 2148
2149 2149
2150 void MacroAssembler::InvokeBuiltin(int native_context_index, InvokeFlag flag,
2151 const CallWrapper& call_wrapper) {
2152 // You can't call a builtin without a valid frame.
2153 DCHECK(flag == JUMP_FUNCTION || has_frame());
2154
2155 // Fake a parameter count to avoid emitting code to do the check.
2156 ParameterCount expected(0);
2157 GetBuiltinFunction(edi, native_context_index);
2158 InvokeFunctionCode(edi, no_reg, expected, expected, flag, call_wrapper);
2159 }
2160
2161
2162 void MacroAssembler::GetBuiltinFunction(Register target, 2150 void MacroAssembler::GetBuiltinFunction(Register target,
2163 int native_context_index) { 2151 int native_context_index) {
2164 // Load the JavaScript builtin function from the builtins object. 2152 // Load the JavaScript builtin function from the builtins object.
2165 mov(target, NativeContextOperand()); 2153 mov(target, NativeContextOperand());
2166 mov(target, ContextOperand(target, native_context_index)); 2154 mov(target, ContextOperand(target, native_context_index));
2167 } 2155 }
2168 2156
2169 2157
2170 void MacroAssembler::LoadContext(Register dst, int context_chain_length) { 2158 void MacroAssembler::LoadContext(Register dst, int context_chain_length) {
2171 if (context_chain_length > 0) { 2159 if (context_chain_length > 0) {
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after
3116 mov(eax, dividend); 3104 mov(eax, dividend);
3117 shr(eax, 31); 3105 shr(eax, 31);
3118 add(edx, eax); 3106 add(edx, eax);
3119 } 3107 }
3120 3108
3121 3109
3122 } // namespace internal 3110 } // namespace internal
3123 } // namespace v8 3111 } // namespace v8
3124 3112
3125 #endif // V8_TARGET_ARCH_IA32 3113 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.h ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698