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

Side by Side Diff: src/x87/lithium-x87.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_X87_LITHIUM_X87_H_ 5 #ifndef V8_X87_LITHIUM_X87_H_
6 #define V8_X87_LITHIUM_X87_H_ 6 #define V8_X87_LITHIUM_X87_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 23 matching lines...) Expand all
34 V(BitI) \ 34 V(BitI) \
35 V(BoundsCheck) \ 35 V(BoundsCheck) \
36 V(Branch) \ 36 V(Branch) \
37 V(CallJSFunction) \ 37 V(CallJSFunction) \
38 V(CallWithDescriptor) \ 38 V(CallWithDescriptor) \
39 V(CallFunction) \ 39 V(CallFunction) \
40 V(CallNew) \ 40 V(CallNew) \
41 V(CallNewArray) \ 41 V(CallNewArray) \
42 V(CallRuntime) \ 42 V(CallRuntime) \
43 V(CallStub) \ 43 V(CallStub) \
44 V(CheckArrayBufferNotNeutered) \
44 V(CheckInstanceType) \ 45 V(CheckInstanceType) \
45 V(CheckMaps) \ 46 V(CheckMaps) \
46 V(CheckMapValue) \ 47 V(CheckMapValue) \
47 V(CheckNonSmi) \ 48 V(CheckNonSmi) \
48 V(CheckSmi) \ 49 V(CheckSmi) \
49 V(CheckValue) \ 50 V(CheckValue) \
50 V(ClampDToUint8) \ 51 V(ClampDToUint8) \
51 V(ClampIToUint8) \ 52 V(ClampIToUint8) \
52 V(ClampTToUint8NoSSE2) \ 53 V(ClampTToUint8NoSSE2) \
53 V(ClassOfTestAndBranch) \ 54 V(ClassOfTestAndBranch) \
(...skipping 2320 matching lines...) Expand 10 before | Expand all | Expand 10 after
2374 inputs_[0] = value; 2375 inputs_[0] = value;
2375 } 2376 }
2376 2377
2377 LOperand* value() { return inputs_[0]; } 2378 LOperand* value() { return inputs_[0]; }
2378 2379
2379 DECLARE_CONCRETE_INSTRUCTION(CheckValue, "check-value") 2380 DECLARE_CONCRETE_INSTRUCTION(CheckValue, "check-value")
2380 DECLARE_HYDROGEN_ACCESSOR(CheckValue) 2381 DECLARE_HYDROGEN_ACCESSOR(CheckValue)
2381 }; 2382 };
2382 2383
2383 2384
2385 class LCheckArrayBufferNotNeutered final
2386 : public LTemplateInstruction<0, 1, 1> {
2387 public:
2388 explicit LCheckArrayBufferNotNeutered(LOperand* view, LOperand* scratch) {
2389 inputs_[0] = view;
2390 temps_[0] = scratch;
2391 }
2392
2393 LOperand* view() { return inputs_[0]; }
2394 LOperand* scratch() { return temps_[0]; }
2395
2396 DECLARE_CONCRETE_INSTRUCTION(CheckArrayBufferNotNeutered,
2397 "check-array-buffer-not-neutered")
2398 DECLARE_HYDROGEN_ACCESSOR(CheckArrayBufferNotNeutered)
2399 };
2400
2401
2384 class LCheckInstanceType final : public LTemplateInstruction<0, 1, 1> { 2402 class LCheckInstanceType final : public LTemplateInstruction<0, 1, 1> {
2385 public: 2403 public:
2386 LCheckInstanceType(LOperand* value, LOperand* temp) { 2404 LCheckInstanceType(LOperand* value, LOperand* temp) {
2387 inputs_[0] = value; 2405 inputs_[0] = value;
2388 temps_[0] = temp; 2406 temps_[0] = temp;
2389 } 2407 }
2390 2408
2391 LOperand* value() { return inputs_[0]; } 2409 LOperand* value() { return inputs_[0]; }
2392 LOperand* temp() { return temps_[0]; } 2410 LOperand* temp() { return temps_[0]; }
2393 2411
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
2862 2880
2863 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2881 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2864 }; 2882 };
2865 2883
2866 #undef DECLARE_HYDROGEN_ACCESSOR 2884 #undef DECLARE_HYDROGEN_ACCESSOR
2867 #undef DECLARE_CONCRETE_INSTRUCTION 2885 #undef DECLARE_CONCRETE_INSTRUCTION
2868 2886
2869 } } // namespace v8::internal 2887 } } // namespace v8::internal
2870 2888
2871 #endif // V8_X87_LITHIUM_X87_H_ 2889 #endif // V8_X87_LITHIUM_X87_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698