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

Side by Side Diff: src/globals.h

Issue 1153373003: Add new Float32x4 type for SIMD.js. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix int type mismatches. Created 5 years, 6 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
« no previous file with comments | « src/factory.cc ('k') | src/heap-snapshot-generator.h » ('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 // 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_GLOBALS_H_ 5 #ifndef V8_GLOBALS_H_
6 #define V8_GLOBALS_H_ 6 #define V8_GLOBALS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 const int kMaxUInt16 = (1 << 16) - 1; 117 const int kMaxUInt16 = (1 << 16) - 1;
118 const int kMinUInt16 = 0; 118 const int kMinUInt16 = 0;
119 119
120 const uint32_t kMaxUInt32 = 0xFFFFFFFFu; 120 const uint32_t kMaxUInt32 = 0xFFFFFFFFu;
121 121
122 const int kCharSize = sizeof(char); // NOLINT 122 const int kCharSize = sizeof(char); // NOLINT
123 const int kShortSize = sizeof(short); // NOLINT 123 const int kShortSize = sizeof(short); // NOLINT
124 const int kIntSize = sizeof(int); // NOLINT 124 const int kIntSize = sizeof(int); // NOLINT
125 const int kInt32Size = sizeof(int32_t); // NOLINT 125 const int kInt32Size = sizeof(int32_t); // NOLINT
126 const int kInt64Size = sizeof(int64_t); // NOLINT 126 const int kInt64Size = sizeof(int64_t); // NOLINT
127 const int kFloatSize = sizeof(float); // NOLINT
127 const int kDoubleSize = sizeof(double); // NOLINT 128 const int kDoubleSize = sizeof(double); // NOLINT
128 const int kIntptrSize = sizeof(intptr_t); // NOLINT 129 const int kIntptrSize = sizeof(intptr_t); // NOLINT
129 const int kPointerSize = sizeof(void*); // NOLINT 130 const int kPointerSize = sizeof(void*); // NOLINT
130 #if V8_TARGET_ARCH_X64 && V8_TARGET_ARCH_32_BIT 131 #if V8_TARGET_ARCH_X64 && V8_TARGET_ARCH_32_BIT
131 const int kRegisterSize = kPointerSize + kPointerSize; 132 const int kRegisterSize = kPointerSize + kPointerSize;
132 #else 133 #else
133 const int kRegisterSize = kPointerSize; 134 const int kRegisterSize = kPointerSize;
134 #endif 135 #endif
135 const int kPCOnStackSize = kRegisterSize; 136 const int kPCOnStackSize = kRegisterSize;
136 const int kFPOnStackSize = kRegisterSize; 137 const int kFPOnStackSize = kRegisterSize;
(...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after
961 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) { 962 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) {
962 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); 963 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral);
963 DCHECK(IsValidFunctionKind(kind)); 964 DCHECK(IsValidFunctionKind(kind));
964 return kind; 965 return kind;
965 } 966 }
966 } } // namespace v8::internal 967 } } // namespace v8::internal
967 968
968 namespace i = v8::internal; 969 namespace i = v8::internal;
969 970
970 #endif // V8_GLOBALS_H_ 971 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/heap-snapshot-generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698