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

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

Issue 189913005: MIPS: 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/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.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(DivI) \ 89 V(DivI) \
89 V(DoubleToI) \ 90 V(DoubleToI) \
91 V(DoubleBits) \
90 V(DoubleToSmi) \ 92 V(DoubleToSmi) \
91 V(Drop) \ 93 V(Drop) \
92 V(Dummy) \ 94 V(Dummy) \
93 V(DummyUse) \ 95 V(DummyUse) \
94 V(ForInCacheArray) \ 96 V(ForInCacheArray) \
95 V(ForInPrepareMap) \ 97 V(ForInPrepareMap) \
96 V(FunctionLiteral) \ 98 V(FunctionLiteral) \
97 V(GetCachedArrayIndex) \ 99 V(GetCachedArrayIndex) \
98 V(Goto) \ 100 V(Goto) \
99 V(HasCachedArrayIndexAndBranch) \ 101 V(HasCachedArrayIndexAndBranch) \
(...skipping 2253 matching lines...) Expand 10 before | Expand all | Expand 10 after
2353 temps_[0] = temp; 2355 temps_[0] = temp;
2354 } 2356 }
2355 2357
2356 LOperand* unclamped() { return inputs_[0]; } 2358 LOperand* unclamped() { return inputs_[0]; }
2357 LOperand* temp() { return temps_[0]; } 2359 LOperand* temp() { return temps_[0]; }
2358 2360
2359 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8") 2361 DECLARE_CONCRETE_INSTRUCTION(ClampTToUint8, "clamp-t-to-uint8")
2360 }; 2362 };
2361 2363
2362 2364
2365 class LDoubleBits V8_FINAL : public LTemplateInstruction<1, 1, 0> {
2366 public:
2367 explicit LDoubleBits(LOperand* value) {
2368 inputs_[0] = value;
2369 }
2370
2371 LOperand* value() { return inputs_[0]; }
2372
2373 DECLARE_CONCRETE_INSTRUCTION(DoubleBits, "double-bits")
2374 DECLARE_HYDROGEN_ACCESSOR(DoubleBits)
2375 };
2376
2377
2378 class LConstructDouble V8_FINAL : public LTemplateInstruction<1, 2, 0> {
2379 public:
2380 LConstructDouble(LOperand* hi, LOperand* lo) {
2381 inputs_[0] = hi;
2382 inputs_[1] = lo;
2383 }
2384
2385 LOperand* hi() { return inputs_[0]; }
2386 LOperand* lo() { return inputs_[1]; }
2387
2388 DECLARE_CONCRETE_INSTRUCTION(ConstructDouble, "construct-double")
2389 };
2390
2391
2363 class LAllocate V8_FINAL : public LTemplateInstruction<1, 2, 2> { 2392 class LAllocate V8_FINAL : public LTemplateInstruction<1, 2, 2> {
2364 public: 2393 public:
2365 LAllocate(LOperand* context, 2394 LAllocate(LOperand* context,
2366 LOperand* size, 2395 LOperand* size,
2367 LOperand* temp1, 2396 LOperand* temp1,
2368 LOperand* temp2) { 2397 LOperand* temp2) {
2369 inputs_[0] = context; 2398 inputs_[0] = context;
2370 inputs_[1] = size; 2399 inputs_[1] = size;
2371 temps_[0] = temp1; 2400 temps_[0] = temp1;
2372 temps_[1] = temp2; 2401 temps_[1] = temp2;
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
2716 2745
2717 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2746 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2718 }; 2747 };
2719 2748
2720 #undef DECLARE_HYDROGEN_ACCESSOR 2749 #undef DECLARE_HYDROGEN_ACCESSOR
2721 #undef DECLARE_CONCRETE_INSTRUCTION 2750 #undef DECLARE_CONCRETE_INSTRUCTION
2722 2751
2723 } } // namespace v8::internal 2752 } } // namespace v8::internal
2724 2753
2725 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2754 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698