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

Side by Side Diff: src/objects-inl.h

Issue 1219943002: Expose SIMD.Float32x4 type to Javascript. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Back out changes to include/v8.h 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
« no previous file with comments | « src/objects.cc ('k') | src/ppc/code-stubs-ppc.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 // 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 // Review notes: 5 // Review notes:
6 // 6 //
7 // - The use of macros in these inline functions may seem superfluous 7 // - The use of macros in these inline functions may seem superfluous
8 // but it is absolutely needed to make sure gcc generates optimal 8 // but it is absolutely needed to make sure gcc generates optimal
9 // code. gcc is not happy when attempting to inline too deep. 9 // code. gcc is not happy when attempting to inline too deep.
10 // 10 //
(...skipping 2196 matching lines...) Expand 10 before | Expand all | Expand 10 after
2207 2207
2208 String* str = String::cast(js_value->value()); 2208 String* str = String::cast(js_value->value());
2209 if (index >= static_cast<uint32_t>(str->length())) return false; 2209 if (index >= static_cast<uint32_t>(str->length())) return false;
2210 2210
2211 return true; 2211 return true;
2212 } 2212 }
2213 2213
2214 2214
2215 void Object::VerifyApiCallResultType() { 2215 void Object::VerifyApiCallResultType() {
2216 #if DEBUG 2216 #if DEBUG
2217 if (!(IsSmi() || 2217 if (!(IsSmi() || IsString() || IsSymbol() || IsSpecObject() ||
2218 IsString() || 2218 IsHeapNumber() || IsFloat32x4() || IsUndefined() || IsTrue() ||
2219 IsSymbol() || 2219 IsFalse() || IsNull())) {
2220 IsSpecObject() ||
2221 IsHeapNumber() ||
2222 IsUndefined() ||
2223 IsTrue() ||
2224 IsFalse() ||
2225 IsNull())) {
2226 FATAL("API call returned invalid object"); 2220 FATAL("API call returned invalid object");
2227 } 2221 }
2228 #endif // DEBUG 2222 #endif // DEBUG
2229 } 2223 }
2230 2224
2231 2225
2232 Object* FixedArray::get(int index) const { 2226 Object* FixedArray::get(int index) const {
2233 SLOW_DCHECK(index >= 0 && index < this->length()); 2227 SLOW_DCHECK(index >= 0 && index < this->length());
2234 return READ_FIELD(this, kHeaderSize + index * kPointerSize); 2228 return READ_FIELD(this, kHeaderSize + index * kPointerSize);
2235 } 2229 }
(...skipping 5052 matching lines...) Expand 10 before | Expand all | Expand 10 after
7288 #undef READ_SHORT_FIELD 7282 #undef READ_SHORT_FIELD
7289 #undef WRITE_SHORT_FIELD 7283 #undef WRITE_SHORT_FIELD
7290 #undef READ_BYTE_FIELD 7284 #undef READ_BYTE_FIELD
7291 #undef WRITE_BYTE_FIELD 7285 #undef WRITE_BYTE_FIELD
7292 #undef NOBARRIER_READ_BYTE_FIELD 7286 #undef NOBARRIER_READ_BYTE_FIELD
7293 #undef NOBARRIER_WRITE_BYTE_FIELD 7287 #undef NOBARRIER_WRITE_BYTE_FIELD
7294 7288
7295 } } // namespace v8::internal 7289 } } // namespace v8::internal
7296 7290
7297 #endif // V8_OBJECTS_INL_H_ 7291 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/ppc/code-stubs-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698