| 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/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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |