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-serialize.cc

Issue 437993003: Move a bunch of GC related files to heap/ subdirectory (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: make presubmit happy Created 6 years, 4 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 | « test/cctest/test-decls.cc ('k') | test/cctest/test-weaktypedarrays.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 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 16 matching lines...) Expand all
27 27
28 #include <signal.h> 28 #include <signal.h>
29 29
30 #include <sys/stat.h> 30 #include <sys/stat.h>
31 31
32 #include "src/v8.h" 32 #include "src/v8.h"
33 33
34 #include "src/bootstrapper.h" 34 #include "src/bootstrapper.h"
35 #include "src/compilation-cache.h" 35 #include "src/compilation-cache.h"
36 #include "src/debug.h" 36 #include "src/debug.h"
37 #include "src/heap/spaces.h"
37 #include "src/ic-inl.h" 38 #include "src/ic-inl.h"
38 #include "src/natives.h" 39 #include "src/natives.h"
39 #include "src/objects.h" 40 #include "src/objects.h"
40 #include "src/runtime.h" 41 #include "src/runtime.h"
41 #include "src/scopeinfo.h" 42 #include "src/scopeinfo.h"
42 #include "src/serialize.h" 43 #include "src/serialize.h"
43 #include "src/snapshot.h" 44 #include "src/snapshot.h"
44 #include "src/spaces.h"
45 #include "test/cctest/cctest.h" 45 #include "test/cctest/cctest.h"
46 46
47 using namespace v8::internal; 47 using namespace v8::internal;
48 48
49 static const unsigned kCounters = 256; 49 static const unsigned kCounters = 256;
50 static int local_counters[kCounters]; 50 static int local_counters[kCounters];
51 static const char* local_counter_names[kCounters]; 51 static const char* local_counter_names[kCounters];
52 52
53 53
54 static unsigned CounterHash(const char* s) { 54 static unsigned CounterHash(const char* s) {
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 { 837 {
838 DisallowCompilation no_compile(reinterpret_cast<Isolate*>(isolate2)); 838 DisallowCompilation no_compile(reinterpret_cast<Isolate*>(isolate2));
839 script = v8::ScriptCompiler::CompileUnbound( 839 script = v8::ScriptCompiler::CompileUnbound(
840 isolate2, &source, v8::ScriptCompiler::kConsumeCodeCache); 840 isolate2, &source, v8::ScriptCompiler::kConsumeCodeCache);
841 } 841 }
842 v8::Local<v8::Value> result = script->BindToCurrentContext()->Run(); 842 v8::Local<v8::Value> result = script->BindToCurrentContext()->Run();
843 CHECK(result->ToString()->Equals(v8_str("abcdef"))); 843 CHECK(result->ToString()->Equals(v8_str("abcdef")));
844 } 844 }
845 isolate2->Dispose(); 845 isolate2->Dispose();
846 } 846 }
OLDNEW
« no previous file with comments | « test/cctest/test-decls.cc ('k') | test/cctest/test-weaktypedarrays.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698