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 1222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1706 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); | 1708 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); |
1707 codegen_->scope_ = saved_scope_; | 1709 codegen_->scope_ = saved_scope_; |
1708 } | 1710 } |
1709 | 1711 |
1710 | 1712 |
1711 #undef __ | 1713 #undef __ |
1712 | 1714 |
1713 | 1715 |
1714 } // namespace internal | 1716 } // namespace internal |
1715 } // namespace v8 | 1717 } // namespace v8 |
OLD | NEW |