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

Side by Side Diff: test/cctest/test-object.cc

Issue 2695653005: Revert of Remove SIMD.js from V8. (Closed)
Patch Set: Created 3 years, 10 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 | « test/cctest/test-heap-profiler.cc ('k') | test/cctest/test-simd.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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 #include "src/factory.h" 5 #include "src/factory.h"
6 #include "src/handles-inl.h" 6 #include "src/handles-inl.h"
7 #include "src/handles.h" 7 #include "src/handles.h"
8 #include "src/isolate.h" 8 #include "src/isolate.h"
9 #include "src/objects-inl.h" 9 #include "src/objects-inl.h"
10 #include "src/objects.h" 10 #include "src/objects.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 CheckString(isolate, "fisk hest", "fisk hest"); 52 CheckString(isolate, "fisk hest", "fisk hest");
53 CheckNumber(isolate, 42.3, "42.3"); 53 CheckNumber(isolate, 42.3, "42.3");
54 CheckSmi(isolate, 42, "42"); 54 CheckSmi(isolate, 42, "42");
55 CheckBoolean(isolate, true, "true"); 55 CheckBoolean(isolate, true, "true");
56 CheckBoolean(isolate, false, "false"); 56 CheckBoolean(isolate, false, "false");
57 CheckBoolean(isolate, false, "false"); 57 CheckBoolean(isolate, false, "false");
58 CheckObject(isolate, factory->undefined_value(), "undefined"); 58 CheckObject(isolate, factory->undefined_value(), "undefined");
59 CheckObject(isolate, factory->null_value(), "null"); 59 CheckObject(isolate, factory->null_value(), "null");
60 60
61 int lanes[] = {0, 1, 2, 3};
62 CheckObject(isolate, factory->NewInt32x4(lanes), "SIMD.Int32x4(0, 1, 2, 3)");
63
61 CheckObject(isolate, factory->error_to_string(), "[object Error]"); 64 CheckObject(isolate, factory->error_to_string(), "[object Error]");
62 CheckObject(isolate, factory->stack_trace_symbol(), 65 CheckObject(isolate, factory->stack_trace_symbol(),
63 "Symbol(stack_trace_symbol)"); 66 "Symbol(stack_trace_symbol)");
64 CheckObject(isolate, factory->NewError(isolate->error_function(), 67 CheckObject(isolate, factory->NewError(isolate->error_function(),
65 factory->empty_string()), 68 factory->empty_string()),
66 "Error"); 69 "Error");
67 CheckObject(isolate, factory->NewError( 70 CheckObject(isolate, factory->NewError(
68 isolate->error_function(), 71 isolate->error_function(),
69 factory->NewStringFromAsciiChecked("fisk hest")), 72 factory->NewStringFromAsciiChecked("fisk hest")),
70 "Error: fisk hest"); 73 "Error: fisk hest");
71 CheckObject(isolate, factory->NewJSObject(isolate->object_function()), 74 CheckObject(isolate, factory->NewJSObject(isolate->object_function()),
72 "#<Object>"); 75 "#<Object>");
73 } 76 }
OLDNEW
« no previous file with comments | « test/cctest/test-heap-profiler.cc ('k') | test/cctest/test-simd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698