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

Side by Side Diff: src/x87/code-stubs-x87.cc

Issue 1051323003: X87: Reland "Merge cellspace into old pointer space". (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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/x87/assembler-x87-inl.h ('k') | no next file » | 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_X87 7 #if V8_TARGET_ARCH_X87
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 2434 matching lines...) Expand 10 before | Expand all | Expand 10 after
2445 __ mov(scratch, Operand(esp, 0 * kPointerSize)); 2445 __ mov(scratch, Operand(esp, 0 * kPointerSize));
2446 __ sub(scratch, Operand(esp, 1 * kPointerSize)); 2446 __ sub(scratch, Operand(esp, 1 * kPointerSize));
2447 if (FLAG_debug_code) { 2447 if (FLAG_debug_code) {
2448 __ cmpb(Operand(scratch, 0), kCmpEdiOperandByte1); 2448 __ cmpb(Operand(scratch, 0), kCmpEdiOperandByte1);
2449 __ Assert(equal, kInstanceofStubUnexpectedCallSiteCacheCmp1); 2449 __ Assert(equal, kInstanceofStubUnexpectedCallSiteCacheCmp1);
2450 __ cmpb(Operand(scratch, 1), kCmpEdiOperandByte2); 2450 __ cmpb(Operand(scratch, 1), kCmpEdiOperandByte2);
2451 __ Assert(equal, kInstanceofStubUnexpectedCallSiteCacheCmp2); 2451 __ Assert(equal, kInstanceofStubUnexpectedCallSiteCacheCmp2);
2452 } 2452 }
2453 __ mov(scratch, Operand(scratch, kDeltaToCmpImmediate)); 2453 __ mov(scratch, Operand(scratch, kDeltaToCmpImmediate));
2454 __ mov(Operand(scratch, 0), map); 2454 __ mov(Operand(scratch, 0), map);
2455 __ push(map);
2456 // Scratch points at the cell payload. Calculate the start of the object.
2457 __ sub(scratch, Immediate(Cell::kValueOffset - 1));
2458 __ RecordWriteField(scratch, Cell::kValueOffset, map, function,
2459 kDontSaveFPRegs, OMIT_REMEMBERED_SET, OMIT_SMI_CHECK);
2460 __ pop(map);
2455 } 2461 }
2456 2462
2457 // Loop through the prototype chain of the object looking for the function 2463 // Loop through the prototype chain of the object looking for the function
2458 // prototype. 2464 // prototype.
2459 __ mov(scratch, FieldOperand(map, Map::kPrototypeOffset)); 2465 __ mov(scratch, FieldOperand(map, Map::kPrototypeOffset));
2460 Label loop, is_instance, is_not_instance; 2466 Label loop, is_instance, is_not_instance;
2461 __ bind(&loop); 2467 __ bind(&loop);
2462 __ cmp(scratch, prototype); 2468 __ cmp(scratch, prototype);
2463 __ j(equal, &is_instance, Label::kNear); 2469 __ j(equal, &is_instance, Label::kNear);
2464 Factory* factory = isolate()->factory(); 2470 Factory* factory = isolate()->factory();
(...skipping 2596 matching lines...) Expand 10 before | Expand all | Expand 10 after
5061 ApiParameterOperand(2), kStackSpace, nullptr, 5067 ApiParameterOperand(2), kStackSpace, nullptr,
5062 Operand(ebp, 7 * kPointerSize), NULL); 5068 Operand(ebp, 7 * kPointerSize), NULL);
5063 } 5069 }
5064 5070
5065 5071
5066 #undef __ 5072 #undef __
5067 5073
5068 } } // namespace v8::internal 5074 } } // namespace v8::internal
5069 5075
5070 #endif // V8_TARGET_ARCH_X87 5076 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x87/assembler-x87-inl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698