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

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

Issue 1316943002: Move (uppercase) JS builtins from js builtins object to native context. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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
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 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_ 5 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_
6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ 6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/frames.h" 10 #include "src/frames.h"
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 const CallWrapper& call_wrapper); 352 const CallWrapper& call_wrapper);
353 353
354 void InvokeFunction(Handle<JSFunction> function, 354 void InvokeFunction(Handle<JSFunction> function,
355 const ParameterCount& expected, 355 const ParameterCount& expected,
356 const ParameterCount& actual, 356 const ParameterCount& actual,
357 InvokeFlag flag, 357 InvokeFlag flag,
358 const CallWrapper& call_wrapper); 358 const CallWrapper& call_wrapper);
359 359
360 // Invoke specified builtin JavaScript function. Adds an entry to 360 // Invoke specified builtin JavaScript function. Adds an entry to
361 // the unresolved list if the name does not resolve. 361 // the unresolved list if the name does not resolve.
362 void InvokeBuiltin(Builtins::JavaScript id, 362 void InvokeBuiltin(int native_context_index, InvokeFlag flag,
363 InvokeFlag flag,
364 const CallWrapper& call_wrapper = NullCallWrapper()); 363 const CallWrapper& call_wrapper = NullCallWrapper());
365 364
366 // Store the function for the given builtin in the target register. 365 // Store the function for the given builtin in the target register.
367 void GetBuiltinFunction(Register target, Builtins::JavaScript id); 366 void GetBuiltinFunction(Register target, int native_context_index);
368 367
369 // Store the code object for the given builtin in the target register. 368 // Store the code object for the given builtin in the target register.
370 void GetBuiltinEntry(Register target, Builtins::JavaScript id); 369 void GetBuiltinEntry(Register target, int native_context_index);
371 370
372 // Expression support 371 // Expression support
373 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which 372 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which
374 // hinders register renaming and makes dependence chains longer. So we use 373 // hinders register renaming and makes dependence chains longer. So we use
375 // xorps to clear the dst register before cvtsi2sd to solve this issue. 374 // xorps to clear the dst register before cvtsi2sd to solve this issue.
376 void Cvtsi2sd(XMMRegister dst, Register src) { Cvtsi2sd(dst, Operand(src)); } 375 void Cvtsi2sd(XMMRegister dst, Register src) { Cvtsi2sd(dst, Operand(src)); }
377 void Cvtsi2sd(XMMRegister dst, const Operand& src); 376 void Cvtsi2sd(XMMRegister dst, const Operand& src);
378 377
379 // Support for constant splitting. 378 // Support for constant splitting.
380 bool IsUnsafeImmediate(const Immediate& x); 379 bool IsUnsafeImmediate(const Immediate& x);
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after
1109 } \ 1108 } \
1110 masm-> 1109 masm->
1111 #else 1110 #else
1112 #define ACCESS_MASM(masm) masm-> 1111 #define ACCESS_MASM(masm) masm->
1113 #endif 1112 #endif
1114 1113
1115 1114
1116 } } // namespace v8::internal 1115 } } // namespace v8::internal
1117 1116
1118 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1117 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698