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

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

Issue 3970005: Make Failure inherit from MaybeObject instead of Object. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 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/ia32/macro-assembler-ia32.cc ('k') | src/ia32/stub-cache-ia32.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-2009 the V8 project authors. All rights reserved. 1 // Copyright 2008-2009 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 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after
1060 Handle<Code> code_handle(re_code); 1060 Handle<Code> code_handle(re_code);
1061 1061
1062 Handle<String> subject(frame_entry<String*>(re_frame, kInputString)); 1062 Handle<String> subject(frame_entry<String*>(re_frame, kInputString));
1063 // Current string. 1063 // Current string.
1064 bool is_ascii = subject->IsAsciiRepresentation(); 1064 bool is_ascii = subject->IsAsciiRepresentation();
1065 1065
1066 ASSERT(re_code->instruction_start() <= *return_address); 1066 ASSERT(re_code->instruction_start() <= *return_address);
1067 ASSERT(*return_address <= 1067 ASSERT(*return_address <=
1068 re_code->instruction_start() + re_code->instruction_size()); 1068 re_code->instruction_start() + re_code->instruction_size());
1069 1069
1070 Object* result = Execution::HandleStackGuardInterrupt(); 1070 MaybeObject* result = Execution::HandleStackGuardInterrupt();
1071 1071
1072 if (*code_handle != re_code) { // Return address no longer valid 1072 if (*code_handle != re_code) { // Return address no longer valid
1073 int delta = *code_handle - re_code; 1073 int delta = *code_handle - re_code;
1074 // Overwrite the return address on the stack. 1074 // Overwrite the return address on the stack.
1075 *return_address += delta; 1075 *return_address += delta;
1076 } 1076 }
1077 1077
1078 if (result->IsException()) { 1078 if (result->IsException()) {
1079 return EXCEPTION; 1079 return EXCEPTION;
1080 } 1080 }
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
1246 } 1246 }
1247 1247
1248 1248
1249 #undef __ 1249 #undef __
1250 1250
1251 #endif // V8_INTERPRETED_REGEXP 1251 #endif // V8_INTERPRETED_REGEXP
1252 1252
1253 }} // namespace v8::internal 1253 }} // namespace v8::internal
1254 1254
1255 #endif // V8_TARGET_ARCH_IA32 1255 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698