Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Side by Side Diff: src/code-stubs-hydrogen.cc

Issue 915583002: Massage the CodeStub class hierarchy a bit. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/code-stubs.h ('k') | src/compiler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698