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

Side by Side Diff: src/hydrogen-instructions.h

Issue 314723002: Fixed lint errors caused by "runtime/references" rule and the rule itself is restored. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « src/heap.cc ('k') | src/ia32/lithium-ia32.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 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_ 5 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_
6 #define V8_HYDROGEN_INSTRUCTIONS_H_ 6 #define V8_HYDROGEN_INSTRUCTIONS_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 2275 matching lines...) Expand 10 before | Expand all | Expand 10 after
2286 bool has_stack_check_; 2286 bool has_stack_check_;
2287 }; 2287 };
2288 2288
2289 2289
2290 class HCallWithDescriptor V8_FINAL : public HInstruction { 2290 class HCallWithDescriptor V8_FINAL : public HInstruction {
2291 public: 2291 public:
2292 static HCallWithDescriptor* New(Zone* zone, HValue* context, 2292 static HCallWithDescriptor* New(Zone* zone, HValue* context,
2293 HValue* target, 2293 HValue* target,
2294 int argument_count, 2294 int argument_count,
2295 const CallInterfaceDescriptor* descriptor, 2295 const CallInterfaceDescriptor* descriptor,
2296 Vector<HValue*>& operands) { 2296 const Vector<HValue*>& operands) {
2297 ASSERT(operands.length() == descriptor->environment_length()); 2297 ASSERT(operands.length() == descriptor->environment_length());
2298 HCallWithDescriptor* res = 2298 HCallWithDescriptor* res =
2299 new(zone) HCallWithDescriptor(target, argument_count, 2299 new(zone) HCallWithDescriptor(target, argument_count,
2300 descriptor, operands, zone); 2300 descriptor, operands, zone);
2301 return res; 2301 return res;
2302 } 2302 }
2303 2303
2304 virtual int OperandCount() V8_FINAL V8_OVERRIDE { return values_.length(); } 2304 virtual int OperandCount() V8_FINAL V8_OVERRIDE { return values_.length(); }
2305 virtual HValue* OperandAt(int index) const V8_FINAL V8_OVERRIDE { 2305 virtual HValue* OperandAt(int index) const V8_FINAL V8_OVERRIDE {
2306 return values_[index]; 2306 return values_[index];
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
2339 return OperandAt(0); 2339 return OperandAt(0);
2340 } 2340 }
2341 2341
2342 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 2342 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
2343 2343
2344 private: 2344 private:
2345 // The argument count includes the receiver. 2345 // The argument count includes the receiver.
2346 HCallWithDescriptor(HValue* target, 2346 HCallWithDescriptor(HValue* target,
2347 int argument_count, 2347 int argument_count,
2348 const CallInterfaceDescriptor* descriptor, 2348 const CallInterfaceDescriptor* descriptor,
2349 Vector<HValue*>& operands, 2349 const Vector<HValue*>& operands,
2350 Zone* zone) 2350 Zone* zone)
2351 : descriptor_(descriptor), 2351 : descriptor_(descriptor),
2352 values_(descriptor->environment_length() + 1, zone) { 2352 values_(descriptor->environment_length() + 1, zone) {
2353 argument_count_ = argument_count; 2353 argument_count_ = argument_count;
2354 AddOperand(target, zone); 2354 AddOperand(target, zone);
2355 for (int i = 0; i < operands.length(); i++) { 2355 for (int i = 0; i < operands.length(); i++) {
2356 AddOperand(operands[i], zone); 2356 AddOperand(operands[i], zone);
2357 } 2357 }
2358 this->set_representation(Representation::Tagged()); 2358 this->set_representation(Representation::Tagged());
2359 this->SetAllSideEffects(); 2359 this->SetAllSideEffects();
(...skipping 5321 matching lines...) Expand 10 before | Expand all | Expand 10 after
7681 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 7681 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
7682 }; 7682 };
7683 7683
7684 7684
7685 #undef DECLARE_INSTRUCTION 7685 #undef DECLARE_INSTRUCTION
7686 #undef DECLARE_CONCRETE_INSTRUCTION 7686 #undef DECLARE_CONCRETE_INSTRUCTION
7687 7687
7688 } } // namespace v8::internal 7688 } } // namespace v8::internal
7689 7689
7690 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7690 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/ia32/lithium-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698