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

Side by Side Diff: src/code-stubs.h

Issue 1219943002: Expose SIMD.Float32x4 type to Javascript. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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_CODE_STUBS_H_ 5 #ifndef V8_CODE_STUBS_H_
6 #define V8_CODE_STUBS_H_ 6 #define V8_CODE_STUBS_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 2732 matching lines...) Expand 10 before | Expand all | Expand 10 after
2743 public: 2743 public:
2744 enum Type { 2744 enum Type {
2745 UNDEFINED, 2745 UNDEFINED,
2746 BOOLEAN, 2746 BOOLEAN,
2747 NULL_TYPE, 2747 NULL_TYPE,
2748 SMI, 2748 SMI,
2749 SPEC_OBJECT, 2749 SPEC_OBJECT,
2750 STRING, 2750 STRING,
2751 SYMBOL, 2751 SYMBOL,
2752 HEAP_NUMBER, 2752 HEAP_NUMBER,
2753 SIMD_TYPE,
rossberg 2015/07/02 13:35:43 Nit: simply SIMD would seem more consistent with t
bbudge 2015/07/06 23:59:04 How about SIMD_VALUE, since SIMD is more of an adj
rossberg 2015/07/08 11:19:37 Fine with me.
2753 NUMBER_OF_TYPES 2754 NUMBER_OF_TYPES
2754 }; 2755 };
2755 2756
2756 enum ResultMode { 2757 enum ResultMode {
2757 RESULT_AS_SMI, // For Smi(1) on truthy value, Smi(0) otherwise. 2758 RESULT_AS_SMI, // For Smi(1) on truthy value, Smi(0) otherwise.
2758 RESULT_AS_ODDBALL, // For {true} on truthy value, {false} otherwise. 2759 RESULT_AS_ODDBALL, // For {true} on truthy value, {false} otherwise.
2759 RESULT_AS_INVERSE_ODDBALL // For {false} on truthy value, {true} otherwise. 2760 RESULT_AS_INVERSE_ODDBALL // For {false} on truthy value, {true} otherwise.
2760 }; 2761 };
2761 2762
2762 // At most 16 different types can be distinguished, because the Code object 2763 // At most 16 different types can be distinguished, because the Code object
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
2983 #undef DEFINE_PLATFORM_CODE_STUB 2984 #undef DEFINE_PLATFORM_CODE_STUB
2984 #undef DEFINE_HANDLER_CODE_STUB 2985 #undef DEFINE_HANDLER_CODE_STUB
2985 #undef DEFINE_HYDROGEN_CODE_STUB 2986 #undef DEFINE_HYDROGEN_CODE_STUB
2986 #undef DEFINE_CODE_STUB 2987 #undef DEFINE_CODE_STUB
2987 #undef DEFINE_CODE_STUB_BASE 2988 #undef DEFINE_CODE_STUB_BASE
2988 2989
2989 extern Representation RepresentationFromType(Type* type); 2990 extern Representation RepresentationFromType(Type* type);
2990 } } // namespace v8::internal 2991 } } // namespace v8::internal
2991 2992
2992 #endif // V8_CODE_STUBS_H_ 2993 #endif // V8_CODE_STUBS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698