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

Side by Side Diff: src/heap.cc

Issue 48061: Remapped regexp last-match-info to put subject and index before match indices. (Closed)
Patch Set: Created 11 years, 9 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
« no previous file with comments | « no previous file | src/jsregexp.h » ('j') | src/regexp-delay.js » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 "v8.h" 28 #include "v8.h"
29 29
30 #include "accessors.h" 30 #include "accessors.h"
31 #include "api.h" 31 #include "api.h"
32 #include "bootstrapper.h" 32 #include "bootstrapper.h"
33 #include "codegen-inl.h" 33 #include "codegen-inl.h"
34 #include "compilation-cache.h" 34 #include "compilation-cache.h"
35 #include "debug.h" 35 #include "debug.h"
36 #include "global-handles.h" 36 #include "global-handles.h"
37 #include "jsregexp.h"
38 #include "mark-compact.h" 37 #include "mark-compact.h"
39 #include "natives.h" 38 #include "natives.h"
40 #include "scanner.h" 39 #include "scanner.h"
41 #include "scopeinfo.h" 40 #include "scopeinfo.h"
42 #include "v8threads.h" 41 #include "v8threads.h"
43 42
44 namespace v8 { namespace internal { 43 namespace v8 { namespace internal {
45 44
46 #define ROOT_ALLOCATION(type, name) type* Heap::name##_; 45 #define ROOT_ALLOCATION(type, name) type* Heap::name##_;
47 ROOT_LIST(ROOT_ALLOCATION) 46 ROOT_LIST(ROOT_ALLOCATION)
(...skipping 3277 matching lines...) Expand 10 before | Expand all | Expand 10 after
3325 #ifdef DEBUG 3324 #ifdef DEBUG
3326 bool Heap::GarbageCollectionGreedyCheck() { 3325 bool Heap::GarbageCollectionGreedyCheck() {
3327 ASSERT(FLAG_gc_greedy); 3326 ASSERT(FLAG_gc_greedy);
3328 if (Bootstrapper::IsActive()) return true; 3327 if (Bootstrapper::IsActive()) return true;
3329 if (disallow_allocation_failure()) return true; 3328 if (disallow_allocation_failure()) return true;
3330 return CollectGarbage(0, NEW_SPACE); 3329 return CollectGarbage(0, NEW_SPACE);
3331 } 3330 }
3332 #endif 3331 #endif
3333 3332
3334 } } // namespace v8::internal 3333 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/jsregexp.h » ('j') | src/regexp-delay.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698