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

Side by Side Diff: src/mips64/builtins-mips64.cc

Issue 756383005: MIPS64: Fix port of Refactor Map::ConstructionCount. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Update the correct register. 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 | « no previous file | 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 5
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #if V8_TARGET_ARCH_MIPS64 9 #if V8_TARGET_ARCH_MIPS64
10 10
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 // Decrease generous allocation count. 388 // Decrease generous allocation count.
389 __ Dsubu(a4, a4, Operand(1 << Map::Counter::kShift)); 389 __ Dsubu(a4, a4, Operand(1 << Map::Counter::kShift));
390 __ Branch(USE_DELAY_SLOT, &allocate, ne, a6, 390 __ Branch(USE_DELAY_SLOT, &allocate, ne, a6,
391 Operand(Map::kSlackTrackingCounterEnd)); 391 Operand(Map::kSlackTrackingCounterEnd));
392 __ sw(a4, bit_field3); // In delay slot. 392 __ sw(a4, bit_field3); // In delay slot.
393 393
394 __ Push(a1, a2, a1); // a1 = Constructor. 394 __ Push(a1, a2, a1); // a1 = Constructor.
395 __ CallRuntime(Runtime::kFinalizeInstanceSize, 1); 395 __ CallRuntime(Runtime::kFinalizeInstanceSize, 1);
396 396
397 __ Pop(a1, a2); 397 __ Pop(a1, a2);
398 // Slack tracking counter is kNoSlackTracking after runtime call. 398 // Slack tracking counter is Map::kSlackTrackingCounterEnd after runtime
399 DCHECK(JSFunction::kNoSlackTracking == 0); 399 // call.
400 __ mov(a6, zero_reg); 400 __ li(a6, Map::kSlackTrackingCounterEnd);
401 401
402 __ bind(&allocate); 402 __ bind(&allocate);
403 } 403 }
404 404
405 // Now allocate the JSObject on the heap. 405 // Now allocate the JSObject on the heap.
406 // a1: constructor function 406 // a1: constructor function
407 // a2: initial map 407 // a2: initial map
408 __ lbu(a3, FieldMemOperand(a2, Map::kInstanceSizeOffset)); 408 __ lbu(a3, FieldMemOperand(a2, Map::kInstanceSizeOffset));
409 if (create_memento) { 409 if (create_memento) {
410 __ Daddu(a3, a3, Operand(AllocationMemento::kSize / kPointerSize)); 410 __ Daddu(a3, a3, Operand(AllocationMemento::kSize / kPointerSize));
(...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after
1576 __ break_(0xCC); 1576 __ break_(0xCC);
1577 } 1577 }
1578 } 1578 }
1579 1579
1580 1580
1581 #undef __ 1581 #undef __
1582 1582
1583 } } // namespace v8::internal 1583 } } // namespace v8::internal
1584 1584
1585 #endif // V8_TARGET_ARCH_MIPS64 1585 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698