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

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

Issue 10383280: Remove unnecessary code for non-zero-length global regexps. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 7 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
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 19 matching lines...) Expand all
30 #include "assembler.h" 30 #include "assembler.h"
31 #include "regexp-stack.h" 31 #include "regexp-stack.h"
32 #include "regexp-macro-assembler.h" 32 #include "regexp-macro-assembler.h"
33 #include "simulator.h" 33 #include "simulator.h"
34 34
35 namespace v8 { 35 namespace v8 {
36 namespace internal { 36 namespace internal {
37 37
38 RegExpMacroAssembler::RegExpMacroAssembler() 38 RegExpMacroAssembler::RegExpMacroAssembler()
39 : slow_safe_compiler_(false), 39 : slow_safe_compiler_(false),
40 global_(false) { 40 global_flag_(NOT_GLOBAL) {
41 } 41 }
42 42
43 43
44 RegExpMacroAssembler::~RegExpMacroAssembler() { 44 RegExpMacroAssembler::~RegExpMacroAssembler() {
45 } 45 }
46 46
47 47
48 bool RegExpMacroAssembler::CanReadUnaligned() { 48 bool RegExpMacroAssembler::CanReadUnaligned() {
49 #ifdef V8_HOST_CAN_READ_UNALIGNED 49 #ifdef V8_HOST_CAN_READ_UNALIGNED
50 return true; 50 return true;
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 return NULL; 266 return NULL;
267 } 267 }
268 *stack_base = new_stack_base; 268 *stack_base = new_stack_base;
269 intptr_t stack_content_size = old_stack_base - stack_pointer; 269 intptr_t stack_content_size = old_stack_base - stack_pointer;
270 return new_stack_base - stack_content_size; 270 return new_stack_base - stack_content_size;
271 } 271 }
272 272
273 #endif // V8_INTERPRETED_REGEXP 273 #endif // V8_INTERPRETED_REGEXP
274 274
275 } } // namespace v8::internal 275 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698