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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 masm_->set_emit_debug_code(generate_debug_code_); | 198 masm_->set_emit_debug_code(generate_debug_code_); |
199 masm_->set_predictable_code_size(true); | 199 masm_->set_predictable_code_size(true); |
200 } | 200 } |
201 | 201 |
202 | 202 |
203 void FullCodeGenerator::PrepareForBailout(Expression* node, State state) { | 203 void FullCodeGenerator::PrepareForBailout(Expression* node, State state) { |
204 PrepareForBailoutForId(node->id(), state); | 204 PrepareForBailoutForId(node->id(), state); |
205 } | 205 } |
206 | 206 |
207 | 207 |
208 void FullCodeGenerator::CallLoadIC(ContextualMode contextual_mode, | 208 void FullCodeGenerator::CallLoadIC(TypeofMode typeof_mode, |
209 LanguageMode language_mode, | 209 LanguageMode language_mode, |
210 TypeFeedbackId id) { | 210 TypeFeedbackId id) { |
211 Handle<Code> ic = | 211 Handle<Code> ic = |
212 CodeFactory::LoadIC(isolate(), contextual_mode, language_mode).code(); | 212 CodeFactory::LoadIC(isolate(), typeof_mode, language_mode).code(); |
213 CallIC(ic, id); | 213 CallIC(ic, id); |
214 } | 214 } |
215 | 215 |
216 | 216 |
217 void FullCodeGenerator::CallStoreIC(TypeFeedbackId id) { | 217 void FullCodeGenerator::CallStoreIC(TypeFeedbackId id) { |
218 Handle<Code> ic = CodeFactory::StoreIC(isolate(), language_mode()).code(); | 218 Handle<Code> ic = CodeFactory::StoreIC(isolate(), language_mode()).code(); |
219 CallIC(ic, id); | 219 CallIC(ic, id); |
220 } | 220 } |
221 | 221 |
222 | 222 |
(...skipping 1222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1445 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); | 1445 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); |
1446 codegen_->scope_ = saved_scope_; | 1446 codegen_->scope_ = saved_scope_; |
1447 } | 1447 } |
1448 | 1448 |
1449 | 1449 |
1450 #undef __ | 1450 #undef __ |
1451 | 1451 |
1452 | 1452 |
1453 } // namespace internal | 1453 } // namespace internal |
1454 } // namespace v8 | 1454 } // namespace v8 |
OLD | NEW |