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

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

Issue 764003003: Reland parts of 'Use weak cells in map checks in polymorphic ICs' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 292
293 void CmpObject(Register reg, Handle<Object> object) { 293 void CmpObject(Register reg, Handle<Object> object) {
294 AllowDeferredHandleDereference heap_object_check; 294 AllowDeferredHandleDereference heap_object_check;
295 if (object->IsHeapObject()) { 295 if (object->IsHeapObject()) {
296 CmpHeapObject(reg, Handle<HeapObject>::cast(object)); 296 CmpHeapObject(reg, Handle<HeapObject>::cast(object));
297 } else { 297 } else {
298 cmp(reg, Immediate(object)); 298 cmp(reg, Immediate(object));
299 } 299 }
300 } 300 }
301 301
302 // Compare the given value and the value of weak cell.
303 void CmpWeakValue(Register value, Handle<WeakCell> cell, Register scratch);
304
305 // Load the value of the weak cell in the value register. Branch to the given
306 // miss label if the weak cell was cleared.
307 void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss);
308
302 // --------------------------------------------------------------------------- 309 // ---------------------------------------------------------------------------
303 // JavaScript invokes 310 // JavaScript invokes
304 311
305 // Invoke the JavaScript function code by either calling or jumping. 312 // Invoke the JavaScript function code by either calling or jumping.
306 void InvokeCode(Register code, 313 void InvokeCode(Register code,
307 const ParameterCount& expected, 314 const ParameterCount& expected,
308 const ParameterCount& actual, 315 const ParameterCount& actual,
309 InvokeFlag flag, 316 InvokeFlag flag,
310 const CallWrapper& call_wrapper) { 317 const CallWrapper& call_wrapper) {
311 InvokeCode(Operand(code), expected, actual, flag, call_wrapper); 318 InvokeCode(Operand(code), expected, actual, flag, call_wrapper);
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
1110 } \ 1117 } \
1111 masm-> 1118 masm->
1112 #else 1119 #else
1113 #define ACCESS_MASM(masm) masm-> 1120 #define ACCESS_MASM(masm) masm->
1114 #endif 1121 #endif
1115 1122
1116 1123
1117 } } // namespace v8::internal 1124 } } // namespace v8::internal
1118 1125
1119 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1126 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698