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

Side by Side Diff: src/ppc/macro-assembler-ppc.cc

Issue 2674593003: [TypeFeedbackVector] Root feedback vectors at function literal site. (Closed)
Patch Set: REBASE+liveedit fix. Created 3 years, 10 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/profiler/heap-snapshot-generator.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 <assert.h> // For assert 5 #include <assert.h> // For assert
6 #include <limits.h> // For LONG_MIN, LONG_MAX. 6 #include <limits.h> // For LONG_MIN, LONG_MAX.
7 7
8 #if V8_TARGET_ARCH_PPC 8 #if V8_TARGET_ARCH_PPC
9 9
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 // base contains prologue address 1017 // base contains prologue address
1018 LoadConstantPoolPointerRegister(base, -prologue_offset); 1018 LoadConstantPoolPointerRegister(base, -prologue_offset);
1019 set_constant_pool_available(true); 1019 set_constant_pool_available(true);
1020 } 1020 }
1021 } 1021 }
1022 1022
1023 1023
1024 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { 1024 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) {
1025 LoadP(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 1025 LoadP(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
1026 LoadP(vector, FieldMemOperand(vector, JSFunction::kFeedbackVectorOffset)); 1026 LoadP(vector, FieldMemOperand(vector, JSFunction::kFeedbackVectorOffset));
1027 LoadP(vector, FieldMemOperand(vector, Cell::kValueOffset));
1027 } 1028 }
1028 1029
1029 1030
1030 void MacroAssembler::EnterFrame(StackFrame::Type type, 1031 void MacroAssembler::EnterFrame(StackFrame::Type type,
1031 bool load_constant_pool_pointer_reg) { 1032 bool load_constant_pool_pointer_reg) {
1032 if (FLAG_enable_embedded_constant_pool && load_constant_pool_pointer_reg) { 1033 if (FLAG_enable_embedded_constant_pool && load_constant_pool_pointer_reg) {
1033 // Push type explicitly so we can leverage the constant pool. 1034 // Push type explicitly so we can leverage the constant pool.
1034 // This path cannot rely on ip containing code entry. 1035 // This path cannot rely on ip containing code entry.
1035 PushCommonFrame(); 1036 PushCommonFrame();
1036 LoadConstantPoolPointerRegister(); 1037 LoadConstantPoolPointerRegister();
(...skipping 3348 matching lines...) Expand 10 before | Expand all | Expand 10 after
4385 } 4386 }
4386 if (mag.shift > 0) srawi(result, result, mag.shift); 4387 if (mag.shift > 0) srawi(result, result, mag.shift);
4387 ExtractBit(r0, dividend, 31); 4388 ExtractBit(r0, dividend, 31);
4388 add(result, result, r0); 4389 add(result, result, r0);
4389 } 4390 }
4390 4391
4391 } // namespace internal 4392 } // namespace internal
4392 } // namespace v8 4393 } // namespace v8
4393 4394
4394 #endif // V8_TARGET_ARCH_PPC 4395 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/objects-printer.cc ('k') | src/profiler/heap-snapshot-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698