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

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: Review comments. 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
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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 const int kMaxUInt16 = (1 << 16) - 1; 122 const int kMaxUInt16 = (1 << 16) - 1;
123 const int kMinUInt16 = 0; 123 const int kMinUInt16 = 0;
124 124
125 const uint32_t kMaxUInt32 = 0xFFFFFFFFu; 125 const uint32_t kMaxUInt32 = 0xFFFFFFFFu;
126 126
127 const int kCharSize = sizeof(char); // NOLINT 127 const int kCharSize = sizeof(char); // NOLINT
128 const int kShortSize = sizeof(short); // NOLINT 128 const int kShortSize = sizeof(short); // NOLINT
129 const int kIntSize = sizeof(int); // NOLINT 129 const int kIntSize = sizeof(int); // NOLINT
130 const int kInt32Size = sizeof(int32_t); // NOLINT 130 const int kInt32Size = sizeof(int32_t); // NOLINT
131 const int kInt64Size = sizeof(int64_t); // NOLINT 131 const int kInt64Size = sizeof(int64_t); // NOLINT
132 const int kFloatSize = sizeof(float); // NOLINT
132 const int kDoubleSize = sizeof(double); // NOLINT 133 const int kDoubleSize = sizeof(double); // NOLINT
133 const int kIntptrSize = sizeof(intptr_t); // NOLINT 134 const int kIntptrSize = sizeof(intptr_t); // NOLINT
134 const int kPointerSize = sizeof(void*); // NOLINT 135 const int kPointerSize = sizeof(void*); // NOLINT
135 #if V8_TARGET_ARCH_X64 && V8_TARGET_ARCH_32_BIT 136 #if V8_TARGET_ARCH_X64 && V8_TARGET_ARCH_32_BIT
136 const int kRegisterSize = kPointerSize + kPointerSize; 137 const int kRegisterSize = kPointerSize + kPointerSize;
137 #else 138 #else
138 const int kRegisterSize = kPointerSize; 139 const int kRegisterSize = kPointerSize;
139 #endif 140 #endif
140 const int kPCOnStackSize = kRegisterSize; 141 const int kPCOnStackSize = kRegisterSize;
141 const int kFPOnStackSize = kRegisterSize; 142 const int kFPOnStackSize = kRegisterSize;
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
969 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) { 970 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) {
970 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); 971 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral);
971 DCHECK(IsValidFunctionKind(kind)); 972 DCHECK(IsValidFunctionKind(kind));
972 return kind; 973 return kind;
973 } 974 }
974 } } // namespace v8::internal 975 } } // namespace v8::internal
975 976
976 namespace i = v8::internal; 977 namespace i = v8::internal;
977 978
978 #endif // V8_GLOBALS_H_ 979 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/heap-snapshot-generator.h » ('j') | test/cctest/test-heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698