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

Side by Side Diff: src/assembler-ia32.cc

Issue 9415: Add bytecodes and an interpreter for executing regular expressions. Very... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/regexp2000/
Patch Set: '' Created 12 years, 1 month 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/assembler.h ('k') | src/assembler-re2k.h » ('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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 spare_buffer_ = NULL; 287 spare_buffer_ = NULL;
288 } 288 }
289 } 289 }
290 if (buffer == NULL) { 290 if (buffer == NULL) {
291 buffer_ = NewArray<byte>(buffer_size); 291 buffer_ = NewArray<byte>(buffer_size);
292 } else { 292 } else {
293 buffer_ = static_cast<byte*>(buffer); 293 buffer_ = static_cast<byte*>(buffer);
294 } 294 }
295 buffer_size_ = buffer_size; 295 buffer_size_ = buffer_size;
296 own_buffer_ = true; 296 own_buffer_ = true;
297
298 } else { 297 } else {
299 // use externally provided buffer instead 298 // use externally provided buffer instead
300 ASSERT(buffer_size > 0); 299 ASSERT(buffer_size > 0);
301 buffer_ = static_cast<byte*>(buffer); 300 buffer_ = static_cast<byte*>(buffer);
302 buffer_size_ = buffer_size; 301 buffer_size_ = buffer_size;
303 own_buffer_ = false; 302 own_buffer_ = false;
304 } 303 }
305 304
306 // Clear the buffer in debug mode unless it was provided by the 305 // Clear the buffer in debug mode unless it was provided by the
307 // caller in which case we can't be sure it's okay to overwrite 306 // caller in which case we can't be sure it's okay to overwrite
(...skipping 1752 matching lines...) Expand 10 before | Expand all | Expand 10 after
2060 ASSERT(bound_label.is_bound()); 2059 ASSERT(bound_label.is_bound());
2061 ASSERT(0 <= position); 2060 ASSERT(0 <= position);
2062 ASSERT(position + static_cast<int>(sizeof(uint32_t)) <= pc_offset()); 2061 ASSERT(position + static_cast<int>(sizeof(uint32_t)) <= pc_offset());
2063 ASSERT(long_at(position) == 0); // only initialize once! 2062 ASSERT(long_at(position) == 0); // only initialize once!
2064 2063
2065 uint32_t label_loc = reinterpret_cast<uint32_t>(addr_at(bound_label.pos())); 2064 uint32_t label_loc = reinterpret_cast<uint32_t>(addr_at(bound_label.pos()));
2066 long_at_put(position, label_loc); 2065 long_at_put(position, label_loc);
2067 } 2066 }
2068 2067
2069 } } // namespace v8::internal 2068 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/assembler-re2k.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698