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

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

Issue 863633002: Use signaling NaN for holes in fixed double arrays. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Restore SSE2 Created 5 years, 11 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 2007-2010 the V8 project authors. All rights reserved. 1 // Copyright 2007-2010 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 CHECK_EQ(make_code(UNCLASSIFIED, 3), 81 CHECK_EQ(make_code(UNCLASSIFIED, 3),
82 encoder.Encode(real_stack_limit_address.address())); 82 encoder.Encode(real_stack_limit_address.address()));
83 CHECK_EQ(make_code(UNCLASSIFIED, 8), 83 CHECK_EQ(make_code(UNCLASSIFIED, 8),
84 encoder.Encode(ExternalReference::debug_break(isolate).address())); 84 encoder.Encode(ExternalReference::debug_break(isolate).address()));
85 CHECK_EQ( 85 CHECK_EQ(
86 make_code(UNCLASSIFIED, 4), 86 make_code(UNCLASSIFIED, 4),
87 encoder.Encode(ExternalReference::new_space_start(isolate).address())); 87 encoder.Encode(ExternalReference::new_space_start(isolate).address()));
88 CHECK_EQ( 88 CHECK_EQ(
89 make_code(UNCLASSIFIED, 1), 89 make_code(UNCLASSIFIED, 1),
90 encoder.Encode(ExternalReference::roots_array_start(isolate).address())); 90 encoder.Encode(ExternalReference::roots_array_start(isolate).address()));
91 CHECK_EQ(make_code(UNCLASSIFIED, 34), 91 CHECK_EQ(make_code(UNCLASSIFIED, 33),
92 encoder.Encode(ExternalReference::cpu_features().address())); 92 encoder.Encode(ExternalReference::cpu_features().address()));
93 } 93 }
94 94
95 95
96 TEST(ExternalReferenceDecoder) { 96 TEST(ExternalReferenceDecoder) {
97 Isolate* isolate = CcTest::i_isolate(); 97 Isolate* isolate = CcTest::i_isolate();
98 v8::V8::Initialize(); 98 v8::V8::Initialize();
99 99
100 ExternalReferenceDecoder decoder(isolate); 100 ExternalReferenceDecoder decoder(isolate);
101 CHECK_EQ(AddressOf(Builtins::kArrayCode), 101 CHECK_EQ(AddressOf(Builtins::kArrayCode),
(...skipping 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after
1360 { 1360 {
1361 DisallowCompilation no_compile(reinterpret_cast<Isolate*>(isolate2)); 1361 DisallowCompilation no_compile(reinterpret_cast<Isolate*>(isolate2));
1362 script = v8::ScriptCompiler::CompileUnbound( 1362 script = v8::ScriptCompiler::CompileUnbound(
1363 isolate2, &source, v8::ScriptCompiler::kConsumeCodeCache); 1363 isolate2, &source, v8::ScriptCompiler::kConsumeCodeCache);
1364 } 1364 }
1365 v8::Local<v8::Value> result = script->BindToCurrentContext()->Run(); 1365 v8::Local<v8::Value> result = script->BindToCurrentContext()->Run();
1366 CHECK(result->ToString(isolate2)->Equals(v8_str("XY"))); 1366 CHECK(result->ToString(isolate2)->Equals(v8_str("XY")));
1367 } 1367 }
1368 isolate2->Dispose(); 1368 isolate2->Dispose();
1369 } 1369 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698