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

Side by Side Diff: src/api.cc

Issue 194070: Fix crash during error reporting during bootstrapping. (Closed)
Patch Set: Created 11 years, 3 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
« no previous file with comments | « no previous file | src/factory.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 2654 matching lines...) Expand 10 before | Expand all | Expand 10 after
2665 ASSERT(!global_constructor.is_null()); 2665 ASSERT(!global_constructor.is_null());
2666 ASSERT(!proxy_constructor.is_null()); 2666 ASSERT(!proxy_constructor.is_null());
2667 global_constructor->set_access_check_info( 2667 global_constructor->set_access_check_info(
2668 proxy_constructor->access_check_info()); 2668 proxy_constructor->access_check_info());
2669 global_constructor->set_needs_access_check( 2669 global_constructor->set_needs_access_check(
2670 proxy_constructor->needs_access_check()); 2670 proxy_constructor->needs_access_check());
2671 } 2671 }
2672 } 2672 }
2673 // Leave V8. 2673 // Leave V8.
2674 2674
2675 if (!ApiCheck(!env.is_null(), 2675 if (env.is_null())
2676 "v8::Context::New()",
2677 "Could not initialize environment"))
2678 return Persistent<Context>(); 2676 return Persistent<Context>();
2679 return Persistent<Context>(Utils::ToLocal(env)); 2677 return Persistent<Context>(Utils::ToLocal(env));
2680 } 2678 }
2681 2679
2682 2680
2683 void v8::Context::SetSecurityToken(Handle<Value> token) { 2681 void v8::Context::SetSecurityToken(Handle<Value> token) {
2684 if (IsDeadCheck("v8::Context::SetSecurityToken()")) return; 2682 if (IsDeadCheck("v8::Context::SetSecurityToken()")) return;
2685 ENTER_V8; 2683 ENTER_V8;
2686 i::Handle<i::Context> env = Utils::OpenHandle(this); 2684 i::Handle<i::Context> env = Utils::OpenHandle(this);
2687 i::Handle<i::Object> token_handle = Utils::OpenHandle(*token); 2685 i::Handle<i::Object> token_handle = Utils::OpenHandle(*token);
(...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after
3727 3725
3728 3726
3729 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { 3727 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) {
3730 HandleScopeImplementer* thread_local = 3728 HandleScopeImplementer* thread_local =
3731 reinterpret_cast<HandleScopeImplementer*>(storage); 3729 reinterpret_cast<HandleScopeImplementer*>(storage);
3732 thread_local->IterateThis(v); 3730 thread_local->IterateThis(v);
3733 return storage + ArchiveSpacePerThread(); 3731 return storage + ArchiveSpacePerThread();
3734 } 3732 }
3735 3733
3736 } } // namespace v8::internal 3734 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698