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

Side by Side Diff: src/arm/lithium-codegen-arm.cc

Issue 1131783003: Embedded constant pools. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix debug-mode Arm issue. Created 5 years, 6 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/arm/full-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.h » ('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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/arm/lithium-codegen-arm.h" 7 #include "src/arm/lithium-codegen-arm.h"
8 #include "src/arm/lithium-gap-resolver-arm.h" 8 #include "src/arm/lithium-gap-resolver-arm.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 106
107 #ifdef DEBUG 107 #ifdef DEBUG
108 if (strlen(FLAG_stop_at) > 0 && 108 if (strlen(FLAG_stop_at) > 0 &&
109 info_->function()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { 109 info_->function()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) {
110 __ stop("stop_at"); 110 __ stop("stop_at");
111 } 111 }
112 #endif 112 #endif
113 113
114 // r1: Callee's JS function. 114 // r1: Callee's JS function.
115 // cp: Callee's context. 115 // cp: Callee's context.
116 // pp: Callee's constant pool pointer (if FLAG_enable_ool_constant_pool) 116 // pp: Callee's constant pool pointer (if enabled)
117 // fp: Caller's frame pointer. 117 // fp: Caller's frame pointer.
118 // lr: Caller's pc. 118 // lr: Caller's pc.
119 119
120 // Sloppy mode functions and builtins need to replace the receiver with the 120 // Sloppy mode functions and builtins need to replace the receiver with the
121 // global proxy when called as functions (without an explicit receiver 121 // global proxy when called as functions (without an explicit receiver
122 // object). 122 // object).
123 if (is_sloppy(info_->language_mode()) && info()->MayUseThis() && 123 if (is_sloppy(info_->language_mode()) && info()->MayUseThis() &&
124 !info_->is_native() && info_->scope()->has_this_declaration()) { 124 !info_->is_native() && info_->scope()->has_this_declaration()) {
125 Label ok; 125 Label ok;
126 int receiver_offset = info_->scope()->num_parameters() * kPointerSize; 126 int receiver_offset = info_->scope()->num_parameters() * kPointerSize;
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after
1003 Safepoint safepoint = safepoints_.DefineSafepoint(masm(), 1003 Safepoint safepoint = safepoints_.DefineSafepoint(masm(),
1004 kind, arguments, deopt_mode); 1004 kind, arguments, deopt_mode);
1005 for (int i = 0; i < operands->length(); i++) { 1005 for (int i = 0; i < operands->length(); i++) {
1006 LOperand* pointer = operands->at(i); 1006 LOperand* pointer = operands->at(i);
1007 if (pointer->IsStackSlot()) { 1007 if (pointer->IsStackSlot()) {
1008 safepoint.DefinePointerSlot(pointer->index(), zone()); 1008 safepoint.DefinePointerSlot(pointer->index(), zone());
1009 } else if (pointer->IsRegister() && (kind & Safepoint::kWithRegisters)) { 1009 } else if (pointer->IsRegister() && (kind & Safepoint::kWithRegisters)) {
1010 safepoint.DefinePointerRegister(ToRegister(pointer), zone()); 1010 safepoint.DefinePointerRegister(ToRegister(pointer), zone());
1011 } 1011 }
1012 } 1012 }
1013 if (FLAG_enable_ool_constant_pool && (kind & Safepoint::kWithRegisters)) {
1014 // Register pp always contains a pointer to the constant pool.
1015 safepoint.DefinePointerRegister(pp, zone());
1016 }
1017 } 1013 }
1018 1014
1019 1015
1020 void LCodeGen::RecordSafepoint(LPointerMap* pointers, 1016 void LCodeGen::RecordSafepoint(LPointerMap* pointers,
1021 Safepoint::DeoptMode deopt_mode) { 1017 Safepoint::DeoptMode deopt_mode) {
1022 RecordSafepoint(pointers, Safepoint::kSimple, 0, deopt_mode); 1018 RecordSafepoint(pointers, Safepoint::kSimple, 0, deopt_mode);
1023 } 1019 }
1024 1020
1025 1021
1026 void LCodeGen::RecordSafepoint(Safepoint::DeoptMode deopt_mode) { 1022 void LCodeGen::RecordSafepoint(Safepoint::DeoptMode deopt_mode) {
(...skipping 4986 matching lines...) Expand 10 before | Expand all | Expand 10 after
6013 __ push(ToRegister(instr->function())); 6009 __ push(ToRegister(instr->function()));
6014 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6010 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6015 RecordSafepoint(Safepoint::kNoLazyDeopt); 6011 RecordSafepoint(Safepoint::kNoLazyDeopt);
6016 } 6012 }
6017 6013
6018 6014
6019 #undef __ 6015 #undef __
6020 6016
6021 } // namespace internal 6017 } // namespace internal
6022 } // namespace v8 6018 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698