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

Side by Side Diff: src/compiler.cc

Issue 754303003: Flesh out vector ic state query and set mechanisms. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. 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 | « src/bootstrapper.cc ('k') | src/factory.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/compiler.h" 7 #include "src/compiler.h"
8 8
9 #include "src/ast-numbering.h" 9 #include "src/ast-numbering.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 290
291 void CompilationInfo::PrepareForCompilation(Scope* scope) { 291 void CompilationInfo::PrepareForCompilation(Scope* scope) {
292 DCHECK(scope_ == NULL); 292 DCHECK(scope_ == NULL);
293 scope_ = scope; 293 scope_ = scope;
294 } 294 }
295 295
296 296
297 void CompilationInfo::EnsureFeedbackVector() { 297 void CompilationInfo::EnsureFeedbackVector() {
298 if (feedback_vector_.is_null()) { 298 if (feedback_vector_.is_null()) {
299 feedback_vector_ = isolate()->factory()->NewTypeFeedbackVector( 299 feedback_vector_ = isolate()->factory()->NewTypeFeedbackVector(
300 function()->slot_count(), function()->ic_slot_count()); 300 function()->feedback_vector_spec());
301 } 301 }
302 DCHECK(feedback_vector_->Slots() == function()->slot_count() &&
303 feedback_vector_->ICSlots() == function()->ic_slot_count());
304 } 302 }
305 303
306 304
307 class HOptimizedGraphBuilderWithPositions: public HOptimizedGraphBuilder { 305 class HOptimizedGraphBuilderWithPositions: public HOptimizedGraphBuilder {
308 public: 306 public:
309 explicit HOptimizedGraphBuilderWithPositions(CompilationInfo* info) 307 explicit HOptimizedGraphBuilderWithPositions(CompilationInfo* info)
310 : HOptimizedGraphBuilder(info) { 308 : HOptimizedGraphBuilder(info) {
311 } 309 }
312 310
313 #define DEF_VISIT(type) \ 311 #define DEF_VISIT(type) \
(...skipping 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1501 AllowHandleDereference allow_deref; 1499 AllowHandleDereference allow_deref;
1502 bool tracing_on = info()->IsStub() 1500 bool tracing_on = info()->IsStub()
1503 ? FLAG_trace_hydrogen_stubs 1501 ? FLAG_trace_hydrogen_stubs
1504 : (FLAG_trace_hydrogen && 1502 : (FLAG_trace_hydrogen &&
1505 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); 1503 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter));
1506 return (tracing_on && 1504 return (tracing_on &&
1507 base::OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL); 1505 base::OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL);
1508 } 1506 }
1509 1507
1510 } } // namespace v8::internal 1508 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698