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

Side by Side Diff: src/arm/regexp-macro-assembler-arm.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, 2 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/api.cc ('k') | src/arm/stub-cache-arm.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 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 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after
1023 Handle<Code> code_handle(re_code); 1023 Handle<Code> code_handle(re_code);
1024 1024
1025 Handle<String> subject(frame_entry<String*>(re_frame, kInputString)); 1025 Handle<String> subject(frame_entry<String*>(re_frame, kInputString));
1026 // Current string. 1026 // Current string.
1027 bool is_ascii = subject->IsAsciiRepresentation(); 1027 bool is_ascii = subject->IsAsciiRepresentation();
1028 1028
1029 ASSERT(re_code->instruction_start() <= *return_address); 1029 ASSERT(re_code->instruction_start() <= *return_address);
1030 ASSERT(*return_address <= 1030 ASSERT(*return_address <=
1031 re_code->instruction_start() + re_code->instruction_size()); 1031 re_code->instruction_start() + re_code->instruction_size());
1032 1032
1033 Object* result = Execution::HandleStackGuardInterrupt(); 1033 MaybeObject* result = Execution::HandleStackGuardInterrupt();
1034 1034
1035 if (*code_handle != re_code) { // Return address no longer valid 1035 if (*code_handle != re_code) { // Return address no longer valid
1036 int delta = *code_handle - re_code; 1036 int delta = *code_handle - re_code;
1037 // Overwrite the return address on the stack. 1037 // Overwrite the return address on the stack.
1038 *return_address += delta; 1038 *return_address += delta;
1039 } 1039 }
1040 1040
1041 if (result->IsException()) { 1041 if (result->IsException()) {
1042 return EXCEPTION; 1042 return EXCEPTION;
1043 } 1043 }
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
1262 __ ldr(pc, MemOperand(sp, stack_alignment, PostIndex)); 1262 __ ldr(pc, MemOperand(sp, stack_alignment, PostIndex));
1263 } 1263 }
1264 1264
1265 #undef __ 1265 #undef __
1266 1266
1267 #endif // V8_INTERPRETED_REGEXP 1267 #endif // V8_INTERPRETED_REGEXP
1268 1268
1269 }} // namespace v8::internal 1269 }} // namespace v8::internal
1270 1270
1271 #endif // V8_TARGET_ARCH_ARM 1271 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/arm/stub-cache-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698