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

Side by Side Diff: src/mips/lithium-mips.h

Issue 1108313003: Add HArrayBufferNotNeutered instruction (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 years, 7 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
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_MIPS_LITHIUM_MIPS_H_ 5 #ifndef V8_MIPS_LITHIUM_MIPS_H_
6 #define V8_MIPS_LITHIUM_MIPS_H_ 6 #define V8_MIPS_LITHIUM_MIPS_H_
7 7
8 #include "src/hydrogen.h" 8 #include "src/hydrogen.h"
9 #include "src/lithium.h" 9 #include "src/lithium.h"
10 #include "src/lithium-allocator.h" 10 #include "src/lithium-allocator.h"
(...skipping 19 matching lines...) Expand all
30 V(BitI) \ 30 V(BitI) \
31 V(BoundsCheck) \ 31 V(BoundsCheck) \
32 V(Branch) \ 32 V(Branch) \
33 V(CallJSFunction) \ 33 V(CallJSFunction) \
34 V(CallWithDescriptor) \ 34 V(CallWithDescriptor) \
35 V(CallFunction) \ 35 V(CallFunction) \
36 V(CallNew) \ 36 V(CallNew) \
37 V(CallNewArray) \ 37 V(CallNewArray) \
38 V(CallRuntime) \ 38 V(CallRuntime) \
39 V(CallStub) \ 39 V(CallStub) \
40 V(CheckArrayBufferNotNeutered) \
40 V(CheckInstanceType) \ 41 V(CheckInstanceType) \
41 V(CheckMaps) \ 42 V(CheckMaps) \
42 V(CheckMapValue) \ 43 V(CheckMapValue) \
43 V(CheckNonSmi) \ 44 V(CheckNonSmi) \
44 V(CheckSmi) \ 45 V(CheckSmi) \
45 V(CheckValue) \ 46 V(CheckValue) \
46 V(ClampDToUint8) \ 47 V(ClampDToUint8) \
47 V(ClampIToUint8) \ 48 V(ClampIToUint8) \
48 V(ClampTToUint8) \ 49 V(ClampTToUint8) \
49 V(ClassOfTestAndBranch) \ 50 V(ClassOfTestAndBranch) \
(...skipping 2275 matching lines...) Expand 10 before | Expand all | Expand 10 after
2325 inputs_[0] = value; 2326 inputs_[0] = value;
2326 } 2327 }
2327 2328
2328 LOperand* value() { return inputs_[0]; } 2329 LOperand* value() { return inputs_[0]; }
2329 2330
2330 DECLARE_CONCRETE_INSTRUCTION(CheckValue, "check-value") 2331 DECLARE_CONCRETE_INSTRUCTION(CheckValue, "check-value")
2331 DECLARE_HYDROGEN_ACCESSOR(CheckValue) 2332 DECLARE_HYDROGEN_ACCESSOR(CheckValue)
2332 }; 2333 };
2333 2334
2334 2335
2336 class LCheckArrayBufferNotNeutered final
2337 : public LTemplateInstruction<0, 1, 0> {
2338 public:
2339 explicit LCheckArrayBufferNotNeutered(LOperand* view) { inputs_[0] = view; }
2340
2341 LOperand* view() { return inputs_[0]; }
2342
2343 DECLARE_CONCRETE_INSTRUCTION(CheckArrayBufferNotNeutered,
2344 "check-array-buffer-not-neutered")
2345 DECLARE_HYDROGEN_ACCESSOR(CheckArrayBufferNotNeutered)
2346 };
2347
2348
2335 class LCheckInstanceType final : public LTemplateInstruction<0, 1, 0> { 2349 class LCheckInstanceType final : public LTemplateInstruction<0, 1, 0> {
2336 public: 2350 public:
2337 explicit LCheckInstanceType(LOperand* value) { 2351 explicit LCheckInstanceType(LOperand* value) {
2338 inputs_[0] = value; 2352 inputs_[0] = value;
2339 } 2353 }
2340 2354
2341 LOperand* value() { return inputs_[0]; } 2355 LOperand* value() { return inputs_[0]; }
2342 2356
2343 DECLARE_CONCRETE_INSTRUCTION(CheckInstanceType, "check-instance-type") 2357 DECLARE_CONCRETE_INSTRUCTION(CheckInstanceType, "check-instance-type")
2344 DECLARE_HYDROGEN_ACCESSOR(CheckInstanceType) 2358 DECLARE_HYDROGEN_ACCESSOR(CheckInstanceType)
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
2813 2827
2814 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2828 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2815 }; 2829 };
2816 2830
2817 #undef DECLARE_HYDROGEN_ACCESSOR 2831 #undef DECLARE_HYDROGEN_ACCESSOR
2818 #undef DECLARE_CONCRETE_INSTRUCTION 2832 #undef DECLARE_CONCRETE_INSTRUCTION
2819 2833
2820 } } // namespace v8::internal 2834 } } // namespace v8::internal
2821 2835
2822 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2836 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698