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

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

Issue 618643002: Replace OStream with std::ostream. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix 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 | « test/cctest/compiler/test-scheduler.cc ('k') | test/cctest/test-ostreams.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 // 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 3058 matching lines...) Expand 10 before | Expand all | Expand 10 after
3069 const char* source = "f = function() { return 987654321; }\n" 3069 const char* source = "f = function() { return 987654321; }\n"
3070 "g = function() { return 123456789; }\n"; 3070 "g = function() { return 123456789; }\n";
3071 CompileRun(source); 3071 CompileRun(source);
3072 Handle<JSFunction> g = 3072 Handle<JSFunction> g =
3073 v8::Utils::OpenHandle( 3073 v8::Utils::OpenHandle(
3074 *v8::Handle<v8::Function>::Cast( 3074 *v8::Handle<v8::Function>::Cast(
3075 CcTest::global()->Get(v8_str("g")))); 3075 CcTest::global()->Get(v8_str("g"))));
3076 3076
3077 OFStream os(stdout); 3077 OFStream os(stdout);
3078 g->shared()->Print(os); 3078 g->shared()->Print(os);
3079 os << endl; 3079 os << std::endl;
3080 } 3080 }
3081 #endif // OBJECT_PRINT 3081 #endif // OBJECT_PRINT
3082 3082
3083 3083
3084 TEST(Regress2211) { 3084 TEST(Regress2211) {
3085 CcTest::InitializeVM(); 3085 CcTest::InitializeVM();
3086 v8::HandleScope scope(CcTest::isolate()); 3086 v8::HandleScope scope(CcTest::isolate());
3087 3087
3088 v8::Handle<v8::String> value = v8_str("val string"); 3088 v8::Handle<v8::String> value = v8_str("val string");
3089 Smi* hash = Smi::FromInt(321); 3089 Smi* hash = Smi::FromInt(321);
(...skipping 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after
4505 #ifdef DEBUG 4505 #ifdef DEBUG
4506 TEST(PathTracer) { 4506 TEST(PathTracer) {
4507 CcTest::InitializeVM(); 4507 CcTest::InitializeVM();
4508 v8::HandleScope scope(CcTest::isolate()); 4508 v8::HandleScope scope(CcTest::isolate());
4509 4509
4510 v8::Local<v8::Value> result = CompileRun("'abc'"); 4510 v8::Local<v8::Value> result = CompileRun("'abc'");
4511 Handle<Object> o = v8::Utils::OpenHandle(*result); 4511 Handle<Object> o = v8::Utils::OpenHandle(*result);
4512 CcTest::i_isolate()->heap()->TracePathToObject(*o); 4512 CcTest::i_isolate()->heap()->TracePathToObject(*o);
4513 } 4513 }
4514 #endif // DEBUG 4514 #endif // DEBUG
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-scheduler.cc ('k') | test/cctest/test-ostreams.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698