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.h

Issue 2799041: [Isolates] Missing file from statics-4 (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: Created 10 years, 5 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 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // successful, and updates the stack_top address, or returns 0 if unable 200 // successful, and updates the stack_top address, or returns 0 if unable
201 // to grow the stack. 201 // to grow the stack.
202 // This function must not trigger a garbage collection. 202 // This function must not trigger a garbage collection.
203 static Address GrowStack(Address stack_pointer, Address* stack_top); 203 static Address GrowStack(Address stack_pointer, Address* stack_top);
204 204
205 static const byte* StringCharacterPosition(String* subject, int start_index); 205 static const byte* StringCharacterPosition(String* subject, int start_index);
206 206
207 // Byte map of ASCII characters with a 0xff if the character is a word 207 // Byte map of ASCII characters with a 0xff if the character is a word
208 // character (digit, letter or underscore) and 0x00 otherwise. 208 // character (digit, letter or underscore) and 0x00 otherwise.
209 // Used by generated RegExp code. 209 // Used by generated RegExp code.
210 static byte word_character_map[128]; 210 static const byte word_character_map[128];
211 211
212 static Address word_character_map_address() { 212 static Address word_character_map_address() {
213 return &word_character_map[0]; 213 return const_cast<Address>(&word_character_map[0]);
214 } 214 }
215 215
216 static Result Execute(Code* code, 216 static Result Execute(Code* code,
217 String* input, 217 String* input,
218 int start_offset, 218 int start_offset,
219 const byte* input_start, 219 const byte* input_start,
220 const byte* input_end, 220 const byte* input_end,
221 int* output); 221 int* output);
222 }; 222 };
223 223
224 #endif // V8_INTERPRETED_REGEXP 224 #endif // V8_INTERPRETED_REGEXP
225 225
226 } } // namespace v8::internal 226 } } // namespace v8::internal
227 227
228 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_ 228 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_
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