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

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

Issue 1197703002: Use big-boy Types to annotate interface descriptor parameters (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Latest Created 5 years, 5 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/code-stubs.cc ('k') | src/compiler.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/bailout-reason.h" 7 #include "src/bailout-reason.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/field-index.h" 9 #include "src/field-index.h"
10 #include "src/hydrogen.h" 10 #include "src/hydrogen.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 int param_count = descriptor_.GetEnvironmentParameterCount(); 129 int param_count = descriptor_.GetEnvironmentParameterCount();
130 HEnvironment* start_environment = graph()->start_environment(); 130 HEnvironment* start_environment = graph()->start_environment();
131 HBasicBlock* next_block = CreateBasicBlock(start_environment); 131 HBasicBlock* next_block = CreateBasicBlock(start_environment);
132 Goto(next_block); 132 Goto(next_block);
133 next_block->SetJoinId(BailoutId::StubEntry()); 133 next_block->SetJoinId(BailoutId::StubEntry());
134 set_current_block(next_block); 134 set_current_block(next_block);
135 135
136 bool runtime_stack_params = descriptor_.stack_parameter_count().is_valid(); 136 bool runtime_stack_params = descriptor_.stack_parameter_count().is_valid();
137 HInstruction* stack_parameter_count = NULL; 137 HInstruction* stack_parameter_count = NULL;
138 for (int i = 0; i < param_count; ++i) { 138 for (int i = 0; i < param_count; ++i) {
139 Representation r = descriptor_.GetEnvironmentParameterRepresentation(i); 139 Representation r =
140 RepresentationFromType(descriptor_.GetEnvironmentParameterType(i));
140 HParameter* param = Add<HParameter>(i, 141 HParameter* param = Add<HParameter>(i,
141 HParameter::REGISTER_PARAMETER, r); 142 HParameter::REGISTER_PARAMETER, r);
142 start_environment->Bind(i, param); 143 start_environment->Bind(i, param);
143 parameters_[i] = param; 144 parameters_[i] = param;
144 if (descriptor_.IsEnvironmentParameterCountRegister(i)) { 145 if (descriptor_.IsEnvironmentParameterCountRegister(i)) {
145 param->set_type(HType::Smi()); 146 param->set_type(HType::Smi());
146 stack_parameter_count = param; 147 stack_parameter_count = param;
147 arguments_length_ = stack_parameter_count; 148 arguments_length_ = stack_parameter_count;
148 } 149 }
149 } 150 }
(...skipping 2079 matching lines...) Expand 10 before | Expand all | Expand 10 after
2229 return Pop(); 2230 return Pop();
2230 } 2231 }
2231 2232
2232 2233
2233 Handle<Code> KeyedLoadGenericStub::GenerateCode() { 2234 Handle<Code> KeyedLoadGenericStub::GenerateCode() {
2234 return DoGenerateCode(this); 2235 return DoGenerateCode(this);
2235 } 2236 }
2236 2237
2237 } // namespace internal 2238 } // namespace internal
2238 } // namespace v8 2239 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698