OLD | NEW |
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 1294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1305 " C[i][i] = 1;" | 1305 " C[i][i] = 1;" |
1306 " }" | 1306 " }" |
1307 " return C[n][m];" | 1307 " return C[n][m];" |
1308 "};" | 1308 "};" |
1309 "binom(1000, 500)"; | 1309 "binom(1000, 500)"; |
1310 { | 1310 { |
1311 AlwaysAllocateScope aa_scope; | 1311 AlwaysAllocateScope aa_scope; |
1312 CompileRun(source); | 1312 CompileRun(source); |
1313 } | 1313 } |
1314 intptr_t old_size = HEAP->SizeOfObjects(); | 1314 intptr_t old_size = HEAP->SizeOfObjects(); |
1315 bool no_idle_work = v8::V8::IdleNotification(); | 1315 bool no_idle_work = v8::V8::IdleNotification(900); |
1316 while (!v8::V8::IdleNotification()) ; | 1316 while (!v8::V8::IdleNotification(900)) ; |
1317 intptr_t new_size = HEAP->SizeOfObjects(); | 1317 intptr_t new_size = HEAP->SizeOfObjects(); |
1318 CHECK(no_idle_work || new_size < 3 * old_size / 4); | 1318 CHECK(no_idle_work || new_size < 3 * old_size / 4); |
1319 } | 1319 } |
OLD | NEW |