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

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

Issue 189823003: Reland "Introduce intrinsics for double values in Javascript." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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/a64/lithium-codegen-a64.cc ('k') | src/arm/lithium-arm.cc » ('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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 V(CompareNumericAndBranch) \ 73 V(CompareNumericAndBranch) \
74 V(CmpObjectEqAndBranch) \ 74 V(CmpObjectEqAndBranch) \
75 V(CmpHoleAndBranch) \ 75 V(CmpHoleAndBranch) \
76 V(CmpMapAndBranch) \ 76 V(CmpMapAndBranch) \
77 V(CmpT) \ 77 V(CmpT) \
78 V(ConstantD) \ 78 V(ConstantD) \
79 V(ConstantE) \ 79 V(ConstantE) \
80 V(ConstantI) \ 80 V(ConstantI) \
81 V(ConstantS) \ 81 V(ConstantS) \
82 V(ConstantT) \ 82 V(ConstantT) \
83 V(ConstructDouble) \
83 V(Context) \ 84 V(Context) \
84 V(DateField) \ 85 V(DateField) \
85 V(DebugBreak) \ 86 V(DebugBreak) \
86 V(DeclareGlobals) \ 87 V(DeclareGlobals) \
87 V(Deoptimize) \ 88 V(Deoptimize) \
88 V(DivByConstI) \ 89 V(DivByConstI) \
89 V(DivByPowerOf2I) \ 90 V(DivByPowerOf2I) \
90 V(DivI) \ 91 V(DivI) \
92 V(DoubleBits) \
91 V(DoubleToI) \ 93 V(DoubleToI) \
92 V(DoubleToSmi) \ 94 V(DoubleToSmi) \
93 V(Drop) \ 95 V(Drop) \
94 V(Dummy) \ 96 V(Dummy) \
95 V(DummyUse) \ 97 V(DummyUse) \
96 V(FlooringDivByConstI) \ 98 V(FlooringDivByConstI) \
97 V(FlooringDivByPowerOf2I) \ 99 V(FlooringDivByPowerOf2I) \
98 V(ForInCacheArray) \ 100 V(ForInCacheArray) \
99 V(ForInPrepareMap) \ 101 V(ForInPrepareMap) \
100 V(FunctionLiteral) \ 102 V(FunctionLiteral) \
(...skipping 2371 matching lines...) Expand 10 before | Expand all | Expand 10 after
2472 temps_[0] = temp; 2474 temps_[0] = temp;
2473 } 2475 }
2474 2476
2475 LOperand* unclamped() { return inputs_[0]; } 2477 LOperand* unclamped() { return inputs_[0]; }
2476 LOperand* temp() { return temps_[0]; } 2478 LOperand* temp() { return temps_[0]; }
2477 2479
2478 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") 2480 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8")
2479 }; 2481 };
2480 2482
2481 2483
2484 class LDoubleBits V8_FINAL : public LTemplateInstruction<1, 1, 0> {
2485 public:
2486 explicit LDoubleBits(LOperand* value) {
2487 inputs_[0] = value;
2488 }
2489
2490 LOperand* value() { return inputs_[0]; }
2491
2492 DECLARE_CONCRETE_INSTRUCTION(DoubleBits, "double-bits")
2493 DECLARE_HYDROGEN_ACCESSOR(DoubleBits)
2494 };
2495
2496
2497 class LConstructDouble V8_FINAL : public LTemplateInstruction<1, 2, 0> {
2498 public:
2499 LConstructDouble(LOperand* hi, LOperand* lo) {
2500 inputs_[0] = hi;
2501 inputs_[1] = lo;
2502 }
2503
2504 LOperand* hi() { return inputs_[0]; }
2505 LOperand* lo() { return inputs_[1]; }
2506
2507 DECLARE_CONCRETE_INSTRUCTION(ConstructDouble, "construct-double")
2508 };
2509
2510
2482 class LAllocate V8_FINAL : public LTemplateInstruction<1, 2, 2> { 2511 class LAllocate V8_FINAL : public LTemplateInstruction<1, 2, 2> {
2483 public: 2512 public:
2484 LAllocate(LOperand* context, 2513 LAllocate(LOperand* context,
2485 LOperand* size, 2514 LOperand* size,
2486 LOperand* temp1, 2515 LOperand* temp1,
2487 LOperand* temp2) { 2516 LOperand* temp2) {
2488 inputs_[0] = context; 2517 inputs_[0] = context;
2489 inputs_[1] = size; 2518 inputs_[1] = size;
2490 temps_[0] = temp1; 2519 temps_[0] = temp1;
2491 temps_[1] = temp2; 2520 temps_[1] = temp2;
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
2844 2873
2845 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2874 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2846 }; 2875 };
2847 2876
2848 #undef DECLARE_HYDROGEN_ACCESSOR 2877 #undef DECLARE_HYDROGEN_ACCESSOR
2849 #undef DECLARE_CONCRETE_INSTRUCTION 2878 #undef DECLARE_CONCRETE_INSTRUCTION
2850 2879
2851 } } // namespace v8::internal 2880 } } // namespace v8::internal
2852 2881
2853 #endif // V8_ARM_LITHIUM_ARM_H_ 2882 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « src/a64/lithium-codegen-a64.cc ('k') | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698