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

Side by Side Diff: src/regexp-macro-assembler.cc

Issue 2866008: [Isolates] Move contents of Top into Isolate.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: ensure we're synced Created 10 years, 6 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 | « src/profile-generator.cc ('k') | src/regexp-stack.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 2008 the V8 project authors. All rights reserved. 1 // Copyright 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 input, 169 input,
170 start_offset, 170 start_offset,
171 input_start, 171 input_start,
172 input_end, 172 input_end,
173 output, 173 output,
174 stack_base, 174 stack_base,
175 direct_call); 175 direct_call);
176 ASSERT(result <= SUCCESS); 176 ASSERT(result <= SUCCESS);
177 ASSERT(result >= RETRY); 177 ASSERT(result >= RETRY);
178 178
179 if (result == EXCEPTION && !Top::has_pending_exception()) { 179 if (result == EXCEPTION && !Isolate::Current()->has_pending_exception()) {
180 // We detected a stack overflow (on the backtrack stack) in RegExp code, 180 // We detected a stack overflow (on the backtrack stack) in RegExp code,
181 // but haven't created the exception yet. 181 // but haven't created the exception yet.
182 Top::StackOverflow(); 182 Isolate::Current()->StackOverflow();
183 } 183 }
184 return static_cast<Result>(result); 184 return static_cast<Result>(result);
185 } 185 }
186 186
187 187
188 static unibrow::Mapping<unibrow::Ecma262Canonicalize> canonicalize; 188 static unibrow::Mapping<unibrow::Ecma262Canonicalize> canonicalize;
189 189
190 190
191 byte NativeRegExpMacroAssembler::word_character_map[] = { 191 byte NativeRegExpMacroAssembler::word_character_map[] = {
192 0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 192 0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u, 0x00u,
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 return NULL; 254 return NULL;
255 } 255 }
256 *stack_base = new_stack_base; 256 *stack_base = new_stack_base;
257 intptr_t stack_content_size = old_stack_base - stack_pointer; 257 intptr_t stack_content_size = old_stack_base - stack_pointer;
258 return new_stack_base - stack_content_size; 258 return new_stack_base - stack_content_size;
259 } 259 }
260 260
261 #endif // V8_INTERPRETED_REGEXP 261 #endif // V8_INTERPRETED_REGEXP
262 262
263 } } // namespace v8::internal 263 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/profile-generator.cc ('k') | src/regexp-stack.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698