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/bailout-reason.h" | 7 #include "src/bailout-reason.h" |
8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
9 #include "src/field-index.h" | 9 #include "src/field-index.h" |
10 #include "src/hydrogen.h" | 10 #include "src/hydrogen.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 HParameter* GetParameter(int parameter) { | 51 HParameter* GetParameter(int parameter) { |
52 DCHECK(parameter < descriptor_.GetEnvironmentParameterCount()); | 52 DCHECK(parameter < descriptor_.GetEnvironmentParameterCount()); |
53 return parameters_[parameter]; | 53 return parameters_[parameter]; |
54 } | 54 } |
55 HValue* GetArgumentsLength() { | 55 HValue* GetArgumentsLength() { |
56 // This is initialized in BuildGraph() | 56 // This is initialized in BuildGraph() |
57 DCHECK(arguments_length_ != NULL); | 57 DCHECK(arguments_length_ != NULL); |
58 return arguments_length_; | 58 return arguments_length_; |
59 } | 59 } |
60 CompilationInfo* info() { return info_; } | 60 CompilationInfo* info() { return info_; } |
61 HydrogenCodeStub* stub() { return info_->code_stub(); } | 61 CodeStub* stub() { return info_->code_stub(); } |
62 HContext* context() { return context_; } | 62 HContext* context() { return context_; } |
63 Isolate* isolate() { return info_->isolate(); } | 63 Isolate* isolate() { return info_->isolate(); } |
64 | 64 |
65 HLoadNamedField* BuildLoadNamedField(HValue* object, | 65 HLoadNamedField* BuildLoadNamedField(HValue* object, |
66 FieldIndex index); | 66 FieldIndex index); |
67 void BuildStoreNamedField(HValue* object, HValue* value, FieldIndex index, | 67 void BuildStoreNamedField(HValue* object, HValue* value, FieldIndex index, |
68 Representation representation, | 68 Representation representation, |
69 bool transition_to_field); | 69 bool transition_to_field); |
70 | 70 |
71 enum ArgumentClass { | 71 enum ArgumentClass { |
(...skipping 2176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2248 // megamorphic case is handled as part of the default stub. | 2248 // megamorphic case is handled as part of the default stub. |
2249 DCHECK(!FLAG_vector_ics); | 2249 DCHECK(!FLAG_vector_ics); |
2250 | 2250 |
2251 // Probe the stub cache. | 2251 // Probe the stub cache. |
2252 Add<HTailCallThroughMegamorphicCache>(receiver, name); | 2252 Add<HTailCallThroughMegamorphicCache>(receiver, name); |
2253 | 2253 |
2254 // We never continue. | 2254 // We never continue. |
2255 return graph()->GetConstant0(); | 2255 return graph()->GetConstant0(); |
2256 } | 2256 } |
2257 } } // namespace v8::internal | 2257 } } // namespace v8::internal |
OLD | NEW |