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

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

Issue 3522008: This is a little experiment to move Failure to a superclass above 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/heap.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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-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 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after
1100 Object* result = NULL; 1100 Object* result = NULL;
1101 ExternalReference extensions_address = 1101 ExternalReference extensions_address =
1102 ExternalReference::handle_scope_extensions_address(); 1102 ExternalReference::handle_scope_extensions_address();
1103 Label write_back; 1103 Label write_back;
1104 mov(scratch, Operand::StaticVariable(extensions_address)); 1104 mov(scratch, Operand::StaticVariable(extensions_address));
1105 cmp(Operand(scratch), Immediate(0)); 1105 cmp(Operand(scratch), Immediate(0));
1106 j(equal, &write_back); 1106 j(equal, &write_back);
1107 push(saved); 1107 push(saved);
1108 if (gc_allowed) { 1108 if (gc_allowed) {
1109 CallRuntime(Runtime::kDeleteHandleScopeExtensions, 0); 1109 CallRuntime(Runtime::kDeleteHandleScopeExtensions, 0);
1110 { TryAllocation t =
1111 TryCallRuntime(Runtime::kDeleteHandleScopeExtensions, 0);
1112 if (!t->ToObject(&result)) return t;
1113 }
1110 } else { 1114 } else {
1111 result = TryCallRuntime(Runtime::kDeleteHandleScopeExtensions, 0);
1112 if (result->IsFailure()) return result;
1113 } 1115 }
1114 pop(saved); 1116 pop(saved);
1115 1117
1116 bind(&write_back); 1118 bind(&write_back);
1117 ExternalReference limit_address = 1119 ExternalReference limit_address =
1118 ExternalReference::handle_scope_limit_address(); 1120 ExternalReference::handle_scope_limit_address();
1119 pop(Operand::StaticVariable(limit_address)); 1121 pop(Operand::StaticVariable(limit_address));
1120 ExternalReference next_address = 1122 ExternalReference next_address =
1121 ExternalReference::handle_scope_next_address(); 1123 ExternalReference::handle_scope_next_address();
1122 pop(Operand::StaticVariable(next_address)); 1124 pop(Operand::StaticVariable(next_address));
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
1672 1674
1673 // Check that the code was patched as expected. 1675 // Check that the code was patched as expected.
1674 ASSERT(masm_.pc_ == address_ + size_); 1676 ASSERT(masm_.pc_ == address_ + size_);
1675 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); 1677 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap);
1676 } 1678 }
1677 1679
1678 1680
1679 } } // namespace v8::internal 1681 } } // namespace v8::internal
1680 1682
1681 #endif // V8_TARGET_ARCH_IA32 1683 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698