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

Side by Side Diff: src/full-codegen.cc

Issue 408183003: Express LoadIC extra ic state with LoadIC::State (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ports. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/full-codegen.h ('k') | src/ia32/full-codegen-ia32.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 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/codegen.h" 7 #include "src/codegen.h"
8 #include "src/compiler.h" 8 #include "src/compiler.h"
9 #include "src/debug.h" 9 #include "src/debug.h"
10 #include "src/full-codegen.h" 10 #include "src/full-codegen.h"
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 masm_->set_emit_debug_code(generate_debug_code_); 397 masm_->set_emit_debug_code(generate_debug_code_);
398 masm_->set_predictable_code_size(true); 398 masm_->set_predictable_code_size(true);
399 } 399 }
400 400
401 401
402 void FullCodeGenerator::PrepareForBailout(Expression* node, State state) { 402 void FullCodeGenerator::PrepareForBailout(Expression* node, State state) {
403 PrepareForBailoutForId(node->id(), state); 403 PrepareForBailoutForId(node->id(), state);
404 } 404 }
405 405
406 406
407 void FullCodeGenerator::CallLoadIC(ContextualMode contextual_mode, 407 void FullCodeGenerator::CallLoadIC(TypeofState typeof_state,
408 TypeFeedbackId id) { 408 TypeFeedbackId id) {
409 ExtraICState extra_state = LoadIC::ComputeExtraICState(contextual_mode); 409 ExtraICState extra_state = LoadIC::ComputeExtraICState(typeof_state);
410 Handle<Code> ic = LoadIC::initialize_stub(isolate(), extra_state); 410 Handle<Code> ic = LoadIC::initialize_stub(isolate(), extra_state);
411 CallIC(ic, id); 411 CallIC(ic, id);
412 } 412 }
413 413
414 414
415 void FullCodeGenerator::CallStoreIC(TypeFeedbackId id) { 415 void FullCodeGenerator::CallStoreIC(TypeFeedbackId id) {
416 Handle<Code> ic = StoreIC::initialize_stub(isolate(), strict_mode()); 416 Handle<Code> ic = StoreIC::initialize_stub(isolate(), strict_mode());
417 CallIC(ic, id); 417 CallIC(ic, id);
418 } 418 }
419 419
(...skipping 1262 matching lines...) Expand 10 before | Expand all | Expand 10 after
1682 } 1682 }
1683 return true; 1683 return true;
1684 } 1684 }
1685 #endif // DEBUG 1685 #endif // DEBUG
1686 1686
1687 1687
1688 #undef __ 1688 #undef __
1689 1689
1690 1690
1691 } } // namespace v8::internal 1691 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/full-codegen.h ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698