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

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

Issue 653353003: Fix compilation after r24639 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « src/serialize.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 915 matching lines...) Expand 10 before | Expand all | Expand 10 after
926 source_str, Handle<String>(), 0, 0, false, 926 source_str, Handle<String>(), 0, 0, false,
927 Handle<Context>(isolate->native_context()), NULL, &cache, 927 Handle<Context>(isolate->native_context()), NULL, &cache,
928 v8::ScriptCompiler::kConsumeCodeCache, NOT_NATIVES_CODE); 928 v8::ScriptCompiler::kConsumeCodeCache, NOT_NATIVES_CODE);
929 } 929 }
930 CHECK_NE(*orig, *copy); 930 CHECK_NE(*orig, *copy);
931 931
932 Handle<JSFunction> copy_fun = 932 Handle<JSFunction> copy_fun =
933 isolate->factory()->NewFunctionFromSharedFunctionInfo( 933 isolate->factory()->NewFunctionFromSharedFunctionInfo(
934 copy, isolate->native_context()); 934 copy, isolate->native_context());
935 935
936 Execution::Call(isolate, copy_fun, global, 0, NULL); 936 USE(Execution::Call(isolate, copy_fun, global, 0, NULL));
937 937
938 CHECK_EQ(600000 + 700000, CompileRun("(a + b).length")->Int32Value()); 938 CHECK_EQ(600000 + 700000, CompileRun("(a + b).length")->Int32Value());
939 CHECK_EQ(500000 + 600000, CompileRun("(b + c).length")->Int32Value()); 939 CHECK_EQ(500000 + 600000, CompileRun("(b + c).length")->Int32Value());
940 Heap* heap = isolate->heap(); 940 Heap* heap = isolate->heap();
941 CHECK(heap->InSpace(*v8::Utils::OpenHandle(*CompileRun("a")->ToString()), 941 CHECK(heap->InSpace(*v8::Utils::OpenHandle(*CompileRun("a")->ToString()),
942 OLD_DATA_SPACE)); 942 OLD_DATA_SPACE));
943 CHECK(heap->InSpace(*v8::Utils::OpenHandle(*CompileRun("b")->ToString()), 943 CHECK(heap->InSpace(*v8::Utils::OpenHandle(*CompileRun("b")->ToString()),
944 OLD_DATA_SPACE)); 944 OLD_DATA_SPACE));
945 CHECK(heap->InSpace(*v8::Utils::OpenHandle(*CompileRun("c")->ToString()), 945 CHECK(heap->InSpace(*v8::Utils::OpenHandle(*CompileRun("c")->ToString()),
946 OLD_DATA_SPACE)); 946 OLD_DATA_SPACE));
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
1205 { 1205 {
1206 DisallowCompilation no_compile(reinterpret_cast<Isolate*>(isolate2)); 1206 DisallowCompilation no_compile(reinterpret_cast<Isolate*>(isolate2));
1207 script = v8::ScriptCompiler::CompileUnbound( 1207 script = v8::ScriptCompiler::CompileUnbound(
1208 isolate2, &source, v8::ScriptCompiler::kConsumeCodeCache); 1208 isolate2, &source, v8::ScriptCompiler::kConsumeCodeCache);
1209 } 1209 }
1210 v8::Local<v8::Value> result = script->BindToCurrentContext()->Run(); 1210 v8::Local<v8::Value> result = script->BindToCurrentContext()->Run();
1211 CHECK(result->ToString()->Equals(v8_str("abcdef"))); 1211 CHECK(result->ToString()->Equals(v8_str("abcdef")));
1212 } 1212 }
1213 isolate2->Dispose(); 1213 isolate2->Dispose();
1214 } 1214 }
OLDNEW
« no previous file with comments | « src/serialize.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698