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

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

Issue 9190002: Fix build failure introduced by r10380 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 2
3 #include <stdlib.h> 3 #include <stdlib.h>
4 4
5 #include "v8.h" 5 #include "v8.h"
6 6
7 #include "execution.h" 7 #include "execution.h"
8 #include "factory.h" 8 #include "factory.h"
9 #include "macro-assembler.h" 9 #include "macro-assembler.h"
10 #include "global-handles.h" 10 #include "global-handles.h"
(...skipping 1463 matching lines...) Expand 10 before | Expand all | Expand 10 after
1474 CHECK_EQ(2, NumberOfGlobalObjects()); 1474 CHECK_EQ(2, NumberOfGlobalObjects());
1475 ctx2.Dispose(); 1475 ctx2.Dispose();
1476 HEAP->CollectAllAvailableGarbage(); 1476 HEAP->CollectAllAvailableGarbage();
1477 CHECK_EQ(0, NumberOfGlobalObjects()); 1477 CHECK_EQ(0, NumberOfGlobalObjects());
1478 } 1478 }
1479 1479
1480 1480
1481 TEST(InstanceOfStubWriteBarrier) { 1481 TEST(InstanceOfStubWriteBarrier) {
1482 if (!i::FLAG_crankshaft) return; 1482 if (!i::FLAG_crankshaft) return;
1483 i::FLAG_allow_natives_syntax = true; 1483 i::FLAG_allow_natives_syntax = true;
1484 #ifdef DEBUG
1484 i::FLAG_verify_heap = true; 1485 i::FLAG_verify_heap = true;
1486 #endif
1485 InitializeVM(); 1487 InitializeVM();
1486 v8::HandleScope outer_scope; 1488 v8::HandleScope outer_scope;
1487 1489
1488 { 1490 {
1489 v8::HandleScope scope; 1491 v8::HandleScope scope;
1490 CompileRun( 1492 CompileRun(
1491 "function foo () { }" 1493 "function foo () { }"
1492 "function mkbar () { return new (new Function(\"\")) (); }" 1494 "function mkbar () { return new (new Function(\"\")) (); }"
1493 "function f (x) { return (x instanceof foo); }" 1495 "function f (x) { return (x instanceof foo); }"
1494 "function g () { f(mkbar()); }" 1496 "function g () { f(mkbar()); }"
(...skipping 30 matching lines...) Expand all
1525 v8::HandleScope scope; 1527 v8::HandleScope scope;
1526 v8::Handle<v8::Object> global = v8::Context::GetCurrent()->Global(); 1528 v8::Handle<v8::Object> global = v8::Context::GetCurrent()->Global();
1527 v8::Handle<v8::Function> g = 1529 v8::Handle<v8::Function> g =
1528 v8::Handle<v8::Function>::Cast(global->Get(v8_str("g"))); 1530 v8::Handle<v8::Function>::Cast(global->Get(v8_str("g")));
1529 g->Call(global, 0, NULL); 1531 g->Call(global, 0, NULL);
1530 } 1532 }
1531 1533
1532 HEAP->incremental_marking()->set_should_hurry(true); 1534 HEAP->incremental_marking()->set_should_hurry(true);
1533 HEAP->CollectGarbage(OLD_POINTER_SPACE); 1535 HEAP->CollectGarbage(OLD_POINTER_SPACE);
1534 } 1536 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698