OLD | NEW |
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/ast.h" | 7 #include "src/ast.h" |
8 #include "src/ast-numbering.h" | 8 #include "src/ast-numbering.h" |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 masm_->set_predictable_code_size(true); | 462 masm_->set_predictable_code_size(true); |
463 } | 463 } |
464 | 464 |
465 | 465 |
466 void FullCodeGenerator::PrepareForBailout(Expression* node, State state) { | 466 void FullCodeGenerator::PrepareForBailout(Expression* node, State state) { |
467 PrepareForBailoutForId(node->id(), state); | 467 PrepareForBailoutForId(node->id(), state); |
468 } | 468 } |
469 | 469 |
470 | 470 |
471 void FullCodeGenerator::CallLoadIC(ContextualMode contextual_mode, | 471 void FullCodeGenerator::CallLoadIC(ContextualMode contextual_mode, |
472 LanguageMode language_mode, | |
473 TypeFeedbackId id) { | 472 TypeFeedbackId id) { |
474 Handle<Code> ic = | 473 Handle<Code> ic = CodeFactory::LoadIC(isolate(), contextual_mode).code(); |
475 CodeFactory::LoadIC(isolate(), contextual_mode, language_mode).code(); | |
476 CallIC(ic, id); | 474 CallIC(ic, id); |
477 } | 475 } |
478 | 476 |
479 | 477 |
480 void FullCodeGenerator::CallGlobalLoadIC(Handle<String> name) { | 478 void FullCodeGenerator::CallGlobalLoadIC(Handle<String> name) { |
481 return CallLoadIC(CONTEXTUAL); | 479 return CallLoadIC(CONTEXTUAL); |
482 } | 480 } |
483 | 481 |
484 | 482 |
485 void FullCodeGenerator::CallStoreIC(TypeFeedbackId id) { | 483 void FullCodeGenerator::CallStoreIC(TypeFeedbackId id) { |
(...skipping 1213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1699 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); | 1697 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); |
1700 codegen_->scope_ = saved_scope_; | 1698 codegen_->scope_ = saved_scope_; |
1701 } | 1699 } |
1702 | 1700 |
1703 | 1701 |
1704 #undef __ | 1702 #undef __ |
1705 | 1703 |
1706 | 1704 |
1707 } // namespace internal | 1705 } // namespace internal |
1708 } // namespace v8 | 1706 } // namespace v8 |
OLD | NEW |