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

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: remove Isolate::js_builtins_object 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
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('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 #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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 const ParameterCount& actual, 350 const ParameterCount& actual,
351 InvokeFlag flag, 351 InvokeFlag flag,
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.
361 // the unresolved list if the name does not resolve. 361 void InvokeBuiltin(int native_context_index, InvokeFlag flag,
362 void InvokeBuiltin(Builtins::JavaScript id,
363 InvokeFlag flag,
364 const CallWrapper& call_wrapper = NullCallWrapper()); 362 const CallWrapper& call_wrapper = NullCallWrapper());
365 363
366 // Store the function for the given builtin in the target register. 364 // Store the function for the given builtin in the target register.
367 void GetBuiltinFunction(Register target, Builtins::JavaScript id); 365 void GetBuiltinFunction(Register target, int native_context_index);
368 366
369 // Store the code object for the given builtin in the target register. 367 // Store the code object for the given builtin in the target register.
370 void GetBuiltinEntry(Register target, Builtins::JavaScript id); 368 void GetBuiltinEntry(Register target, int native_context_index);
371 369
372 // Expression support 370 // Expression support
373 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which 371 // 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 372 // hinders register renaming and makes dependence chains longer. So we use
375 // xorps to clear the dst register before cvtsi2sd to solve this issue. 373 // xorps to clear the dst register before cvtsi2sd to solve this issue.
376 void Cvtsi2sd(XMMRegister dst, Register src) { Cvtsi2sd(dst, Operand(src)); } 374 void Cvtsi2sd(XMMRegister dst, Register src) { Cvtsi2sd(dst, Operand(src)); }
377 void Cvtsi2sd(XMMRegister dst, const Operand& src); 375 void Cvtsi2sd(XMMRegister dst, const Operand& src);
378 376
379 // Support for constant splitting. 377 // Support for constant splitting.
380 bool IsUnsafeImmediate(const Immediate& x); 378 bool IsUnsafeImmediate(const Immediate& x);
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after
1109 } \ 1107 } \
1110 masm-> 1108 masm->
1111 #else 1109 #else
1112 #define ACCESS_MASM(masm) masm-> 1110 #define ACCESS_MASM(masm) masm->
1113 #endif 1111 #endif
1114 1112
1115 1113
1116 } } // namespace v8::internal 1114 } } // namespace v8::internal
1117 1115
1118 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1116 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698