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, |
472 TypeFeedbackId id) { | 473 TypeFeedbackId id) { |
473 Handle<Code> ic = CodeFactory::LoadIC(isolate(), contextual_mode).code(); | 474 Handle<Code> ic = |
| 475 CodeFactory::LoadIC(isolate(), contextual_mode, language_mode).code(); |
474 CallIC(ic, id); | 476 CallIC(ic, id); |
475 } | 477 } |
476 | 478 |
477 | 479 |
478 void FullCodeGenerator::CallGlobalLoadIC(Handle<String> name) { | 480 void FullCodeGenerator::CallGlobalLoadIC(Handle<String> name) { |
479 return CallLoadIC(CONTEXTUAL); | 481 return CallLoadIC(CONTEXTUAL); |
480 } | 482 } |
481 | 483 |
482 | 484 |
483 void FullCodeGenerator::CallStoreIC(TypeFeedbackId id) { | 485 void FullCodeGenerator::CallStoreIC(TypeFeedbackId id) { |
(...skipping 1213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1697 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); | 1699 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); |
1698 codegen_->scope_ = saved_scope_; | 1700 codegen_->scope_ = saved_scope_; |
1699 } | 1701 } |
1700 | 1702 |
1701 | 1703 |
1702 #undef __ | 1704 #undef __ |
1703 | 1705 |
1704 | 1706 |
1705 } // namespace internal | 1707 } // namespace internal |
1706 } // namespace v8 | 1708 } // namespace v8 |
OLD | NEW |