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/full-codegen/full-codegen.h" | 5 #include "src/full-codegen/full-codegen.h" |
6 | 6 |
7 #include "src/ast/ast-numbering.h" | 7 #include "src/ast/ast-numbering.h" |
8 #include "src/ast/ast.h" | 8 #include "src/ast/ast.h" |
9 #include "src/ast/prettyprinter.h" | 9 #include "src/ast/prettyprinter.h" |
10 #include "src/ast/scopes.h" | 10 #include "src/ast/scopes.h" |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 ArrayLiteral* expr) const { | 166 ArrayLiteral* expr) const { |
167 return !expr->IsFastCloningSupported(); | 167 return !expr->IsFastCloningSupported(); |
168 } | 168 } |
169 | 169 |
170 void FullCodeGenerator::Initialize(uintptr_t stack_limit) { | 170 void FullCodeGenerator::Initialize(uintptr_t stack_limit) { |
171 InitializeAstVisitor(stack_limit); | 171 InitializeAstVisitor(stack_limit); |
172 masm_->set_emit_debug_code(FLAG_debug_code); | 172 masm_->set_emit_debug_code(FLAG_debug_code); |
173 masm_->set_predictable_code_size(true); | 173 masm_->set_predictable_code_size(true); |
174 } | 174 } |
175 | 175 |
176 void FullCodeGenerator::CallIC(Handle<Code> code, TypeFeedbackId ast_id) { | 176 void FullCodeGenerator::CallIC(Handle<Code> code) { |
177 ic_total_count_++; | 177 ic_total_count_++; |
178 __ Call(code, RelocInfo::CODE_TARGET, ast_id); | 178 __ Call(code, RelocInfo::CODE_TARGET); |
179 } | 179 } |
180 | 180 |
181 void FullCodeGenerator::CallLoadIC(FeedbackSlot slot, Handle<Object> name) { | 181 void FullCodeGenerator::CallLoadIC(FeedbackSlot slot, Handle<Object> name) { |
182 DCHECK(name->IsName()); | 182 DCHECK(name->IsName()); |
183 __ Move(LoadDescriptor::NameRegister(), name); | 183 __ Move(LoadDescriptor::NameRegister(), name); |
184 | 184 |
185 EmitLoadSlot(LoadDescriptor::SlotRegister(), slot); | 185 EmitLoadSlot(LoadDescriptor::SlotRegister(), slot); |
186 | 186 |
187 Handle<Code> code = isolate()->builtins()->LoadICTrampoline(); | 187 Handle<Code> code = isolate()->builtins()->LoadICTrampoline(); |
188 __ Call(code, RelocInfo::CODE_TARGET); | 188 __ Call(code, RelocInfo::CODE_TARGET); |
(...skipping 1322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1511 | 1511 |
1512 const FeedbackVectorSpec* FullCodeGenerator::feedback_vector_spec() const { | 1512 const FeedbackVectorSpec* FullCodeGenerator::feedback_vector_spec() const { |
1513 return literal()->feedback_vector_spec(); | 1513 return literal()->feedback_vector_spec(); |
1514 } | 1514 } |
1515 | 1515 |
1516 #undef __ | 1516 #undef __ |
1517 | 1517 |
1518 | 1518 |
1519 } // namespace internal | 1519 } // namespace internal |
1520 } // namespace v8 | 1520 } // namespace v8 |
OLD | NEW |