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/x87/macro-assembler-x87.h

Issue 771033003: Revert 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
« no previous file with comments | « src/x64/macro-assembler-x64.cc ('k') | src/x87/macro-assembler-x87.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_X87_MACRO_ASSEMBLER_X87_H_ 5 #ifndef V8_X87_MACRO_ASSEMBLER_X87_H_
6 #define V8_X87_MACRO_ASSEMBLER_X87_H_ 6 #define V8_X87_MACRO_ASSEMBLER_X87_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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 270
271 void CmpObject(Register reg, Handle<Object> object) { 271 void CmpObject(Register reg, Handle<Object> object) {
272 AllowDeferredHandleDereference heap_object_check; 272 AllowDeferredHandleDereference heap_object_check;
273 if (object->IsHeapObject()) { 273 if (object->IsHeapObject()) {
274 CmpHeapObject(reg, Handle<HeapObject>::cast(object)); 274 CmpHeapObject(reg, Handle<HeapObject>::cast(object));
275 } else { 275 } else {
276 cmp(reg, Immediate(object)); 276 cmp(reg, Immediate(object));
277 } 277 }
278 } 278 }
279 279
280 void CmpWeakValue(Register value, Handle<WeakCell> cell, Register scratch);
281 void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss);
282
283 // --------------------------------------------------------------------------- 280 // ---------------------------------------------------------------------------
284 // JavaScript invokes 281 // JavaScript invokes
285 282
286 // Invoke the JavaScript function code by either calling or jumping. 283 // Invoke the JavaScript function code by either calling or jumping.
287 void InvokeCode(Register code, 284 void InvokeCode(Register code,
288 const ParameterCount& expected, 285 const ParameterCount& expected,
289 const ParameterCount& actual, 286 const ParameterCount& actual,
290 InvokeFlag flag, 287 InvokeFlag flag,
291 const CallWrapper& call_wrapper) { 288 const CallWrapper& call_wrapper) {
292 InvokeCode(Operand(code), expected, actual, flag, call_wrapper); 289 InvokeCode(Operand(code), expected, actual, flag, call_wrapper);
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after
1079 } \ 1076 } \
1080 masm-> 1077 masm->
1081 #else 1078 #else
1082 #define ACCESS_MASM(masm) masm-> 1079 #define ACCESS_MASM(masm) masm->
1083 #endif 1080 #endif
1084 1081
1085 1082
1086 } } // namespace v8::internal 1083 } } // namespace v8::internal
1087 1084
1088 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ 1085 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_
OLDNEW
« no previous file with comments | « src/x64/macro-assembler-x64.cc ('k') | src/x87/macro-assembler-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698