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

Side by Side Diff: src/api.cc

Issue 251072: When allocation is forced because we already did two GCs we need to force GCs... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 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 | « no previous file | src/heap.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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // --- E x c e p t i o n B e h a v i o r --- 100 // --- E x c e p t i o n B e h a v i o r ---
101 101
102 102
103 static FatalErrorCallback exception_behavior = NULL; 103 static FatalErrorCallback exception_behavior = NULL;
104 int i::Internals::kJSObjectType = JS_OBJECT_TYPE; 104 int i::Internals::kJSObjectType = JS_OBJECT_TYPE;
105 int i::Internals::kFirstNonstringType = FIRST_NONSTRING_TYPE; 105 int i::Internals::kFirstNonstringType = FIRST_NONSTRING_TYPE;
106 int i::Internals::kProxyType = PROXY_TYPE; 106 int i::Internals::kProxyType = PROXY_TYPE;
107 107
108 static void DefaultFatalErrorHandler(const char* location, 108 static void DefaultFatalErrorHandler(const char* location,
109 const char* message) { 109 const char* message) {
110 printf("%s: %s\n", location, message);
antonm 2009/10/02 12:53:33 is it a reminder of debugging or intended change?
Erik Corry 2009/10/02 13:09:24 I guess it's a remainder of debugging. It certain
110 ENTER_V8; 111 ENTER_V8;
111 API_Fatal(location, message); 112 API_Fatal(location, message);
112 } 113 }
113 114
114 115
115 116
116 static FatalErrorCallback& GetFatalErrorHandler() { 117 static FatalErrorCallback& GetFatalErrorHandler() {
117 if (exception_behavior == NULL) { 118 if (exception_behavior == NULL) {
118 exception_behavior = DefaultFatalErrorHandler; 119 exception_behavior = DefaultFatalErrorHandler;
119 } 120 }
(...skipping 3644 matching lines...) Expand 10 before | Expand all | Expand 10 after
3764 3765
3765 3766
3766 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { 3767 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) {
3767 HandleScopeImplementer* thread_local = 3768 HandleScopeImplementer* thread_local =
3768 reinterpret_cast<HandleScopeImplementer*>(storage); 3769 reinterpret_cast<HandleScopeImplementer*>(storage);
3769 thread_local->IterateThis(v); 3770 thread_local->IterateThis(v);
3770 return storage + ArchiveSpacePerThread(); 3771 return storage + ArchiveSpacePerThread();
3771 } 3772 }
3772 3773
3773 } } // namespace v8::internal 3774 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698