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

Side by Side Diff: src/isolate.cc

Issue 136643008: A64: Synchronize with r18256. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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/isolate.h ('k') | src/list.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after
1316 Script::cast(thread_local_top_.pending_message_script_)); 1316 Script::cast(thread_local_top_.pending_message_script_));
1317 int start_pos = thread_local_top_.pending_message_start_pos_; 1317 int start_pos = thread_local_top_.pending_message_start_pos_;
1318 int end_pos = thread_local_top_.pending_message_end_pos_; 1318 int end_pos = thread_local_top_.pending_message_end_pos_;
1319 return MessageLocation(script, start_pos, end_pos); 1319 return MessageLocation(script, start_pos, end_pos);
1320 } 1320 }
1321 1321
1322 return MessageLocation(); 1322 return MessageLocation();
1323 } 1323 }
1324 1324
1325 1325
1326 void Isolate::TraceException(bool flag) {
1327 FLAG_trace_exception = flag; // TODO(isolates): This is an unfortunate use.
1328 }
1329
1330
1331 bool Isolate::OptionalRescheduleException(bool is_bottom_call) { 1326 bool Isolate::OptionalRescheduleException(bool is_bottom_call) {
1332 ASSERT(has_pending_exception()); 1327 ASSERT(has_pending_exception());
1333 PropagatePendingExceptionToExternalTryCatch(); 1328 PropagatePendingExceptionToExternalTryCatch();
1334 1329
1335 // Always reschedule out of memory exceptions. 1330 // Always reschedule out of memory exceptions.
1336 if (!is_out_of_memory()) { 1331 if (!is_out_of_memory()) {
1337 bool is_termination_exception = 1332 bool is_termination_exception =
1338 pending_exception() == heap_.termination_exception(); 1333 pending_exception() == heap_.termination_exception();
1339 1334
1340 // Do not reschedule the exception if this is the bottom call. 1335 // Do not reschedule the exception if this is the bottom call.
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
2103 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(this); 2098 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(this);
2104 StubFailureTrampolineStub::GenerateAheadOfTime(this); 2099 StubFailureTrampolineStub::GenerateAheadOfTime(this);
2105 StubFailureTailCallTrampolineStub::GenerateAheadOfTime(this); 2100 StubFailureTailCallTrampolineStub::GenerateAheadOfTime(this);
2106 // TODO(mstarzinger): The following is an ugly hack to make sure the 2101 // TODO(mstarzinger): The following is an ugly hack to make sure the
2107 // interface descriptor is initialized even when stubs have been 2102 // interface descriptor is initialized even when stubs have been
2108 // deserialized out of the snapshot without the graph builder. 2103 // deserialized out of the snapshot without the graph builder.
2109 FastCloneShallowArrayStub stub(FastCloneShallowArrayStub::CLONE_ELEMENTS, 2104 FastCloneShallowArrayStub stub(FastCloneShallowArrayStub::CLONE_ELEMENTS,
2110 DONT_TRACK_ALLOCATION_SITE, 0); 2105 DONT_TRACK_ALLOCATION_SITE, 0);
2111 stub.InitializeInterfaceDescriptor( 2106 stub.InitializeInterfaceDescriptor(
2112 this, code_stub_interface_descriptor(CodeStub::FastCloneShallowArray)); 2107 this, code_stub_interface_descriptor(CodeStub::FastCloneShallowArray));
2113 BinaryOpStub::InitializeForIsolate(this); 2108 BinaryOpICStub::InstallDescriptors(this);
2114 CompareNilICStub::InitializeForIsolate(this); 2109 CompareNilICStub::InitializeForIsolate(this);
2115 ToBooleanStub::InitializeForIsolate(this); 2110 ToBooleanStub::InitializeForIsolate(this);
2116 ArrayConstructorStubBase::InstallDescriptors(this); 2111 ArrayConstructorStubBase::InstallDescriptors(this);
2117 InternalArrayConstructorStubBase::InstallDescriptors(this); 2112 InternalArrayConstructorStubBase::InstallDescriptors(this);
2118 FastNewClosureStub::InstallDescriptors(this); 2113 FastNewClosureStub::InstallDescriptors(this);
2119 NumberToStringStub::InstallDescriptors(this); 2114 NumberToStringStub::InstallDescriptors(this);
2120 NewStringAddStub::InstallDescriptors(this); 2115 NewStringAddStub::InstallDescriptors(this);
2121 } 2116 }
2122 2117
2123 initialized_from_snapshot_ = (des != NULL); 2118 initialized_from_snapshot_ = (des != NULL);
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
2304 2299
2305 #ifdef DEBUG 2300 #ifdef DEBUG
2306 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 2301 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
2307 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 2302 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
2308 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 2303 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
2309 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 2304 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
2310 #undef ISOLATE_FIELD_OFFSET 2305 #undef ISOLATE_FIELD_OFFSET
2311 #endif 2306 #endif
2312 2307
2313 } } // namespace v8::internal 2308 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | src/list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698