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

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

Issue 1276533003: [runtime] Store constructor function index on primitive maps. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix arm failures Created 5 years, 4 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/objects-printer.cc ('k') | src/runtime/runtime-collections.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 7 #if V8_TARGET_ARCH_PPC
8 8
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/debug/debug.h" 10 #include "src/debug/debug.h"
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 __ LoadRoot(r10, Heap::kUndefinedValueRootIndex); 427 __ LoadRoot(r10, Heap::kUndefinedValueRootIndex);
428 428
429 if (!is_api_function) { 429 if (!is_api_function) {
430 Label no_inobject_slack_tracking; 430 Label no_inobject_slack_tracking;
431 431
432 // Check if slack tracking is enabled. 432 // Check if slack tracking is enabled.
433 __ cmpi(r11, Operand(Map::kSlackTrackingCounterEnd)); 433 __ cmpi(r11, Operand(Map::kSlackTrackingCounterEnd));
434 __ blt(&no_inobject_slack_tracking); 434 __ blt(&no_inobject_slack_tracking);
435 435
436 // Allocate object with a slack. 436 // Allocate object with a slack.
437 __ lbz(r3, FieldMemOperand(r5, Map::kInObjectPropertiesOffset)); 437 __ lbz(
438 r3,
439 FieldMemOperand(
440 r5, Map::kInObjectPropertiesOrConstructorFunctionIndexOffset));
438 __ lbz(r5, FieldMemOperand(r5, Map::kUnusedPropertyFieldsOffset)); 441 __ lbz(r5, FieldMemOperand(r5, Map::kUnusedPropertyFieldsOffset));
439 __ sub(r3, r3, r5); 442 __ sub(r3, r3, r5);
440 if (FLAG_debug_code) { 443 if (FLAG_debug_code) {
441 __ ShiftLeftImm(r0, r3, Operand(kPointerSizeLog2)); 444 __ ShiftLeftImm(r0, r3, Operand(kPointerSizeLog2));
442 __ add(r0, r8, r0); 445 __ add(r0, r8, r0);
443 // r0: offset of first field after pre-allocated fields 446 // r0: offset of first field after pre-allocated fields
444 __ cmp(r0, r9); 447 __ cmp(r0, r9);
445 __ Assert(le, kUnexpectedNumberOfPreAllocatedPropertyFields); 448 __ Assert(le, kUnexpectedNumberOfPreAllocatedPropertyFields);
446 } 449 }
447 { 450 {
(...skipping 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1919 __ bkpt(0); 1922 __ bkpt(0);
1920 } 1923 }
1921 } 1924 }
1922 1925
1923 1926
1924 #undef __ 1927 #undef __
1925 } // namespace internal 1928 } // namespace internal
1926 } // namespace v8 1929 } // namespace v8
1927 1930
1928 #endif // V8_TARGET_ARCH_PPC 1931 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/objects-printer.cc ('k') | src/runtime/runtime-collections.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698