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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 masm_->set_predictable_code_size(true); | 436 masm_->set_predictable_code_size(true); |
437 } | 437 } |
438 | 438 |
439 | 439 |
440 void FullCodeGenerator::PrepareForBailout(Expression* node, State state) { | 440 void FullCodeGenerator::PrepareForBailout(Expression* node, State state) { |
441 PrepareForBailoutForId(node->id(), state); | 441 PrepareForBailoutForId(node->id(), state); |
442 } | 442 } |
443 | 443 |
444 | 444 |
445 void FullCodeGenerator::CallLoadIC(ContextualMode contextual_mode, | 445 void FullCodeGenerator::CallLoadIC(ContextualMode contextual_mode, |
| 446 LanguageMode language_mode, |
446 TypeFeedbackId id) { | 447 TypeFeedbackId id) { |
447 Handle<Code> ic = CodeFactory::LoadIC(isolate(), contextual_mode).code(); | 448 Handle<Code> ic = |
| 449 CodeFactory::LoadIC(isolate(), contextual_mode, language_mode).code(); |
448 CallIC(ic, id); | 450 CallIC(ic, id); |
449 } | 451 } |
450 | 452 |
451 | 453 |
452 void FullCodeGenerator::CallGlobalLoadIC(Handle<String> name) { | 454 void FullCodeGenerator::CallGlobalLoadIC(Handle<String> name) { |
453 return CallLoadIC(CONTEXTUAL); | 455 return CallLoadIC(CONTEXTUAL); |
454 } | 456 } |
455 | 457 |
456 | 458 |
457 void FullCodeGenerator::CallStoreIC(TypeFeedbackId id) { | 459 void FullCodeGenerator::CallStoreIC(TypeFeedbackId id) { |
(...skipping 1207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1665 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); | 1667 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); |
1666 codegen_->scope_ = saved_scope_; | 1668 codegen_->scope_ = saved_scope_; |
1667 } | 1669 } |
1668 | 1670 |
1669 | 1671 |
1670 #undef __ | 1672 #undef __ |
1671 | 1673 |
1672 | 1674 |
1673 } // namespace internal | 1675 } // namespace internal |
1674 } // namespace v8 | 1676 } // namespace v8 |
OLD | NEW |