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

Side by Side Diff: src/objects.cc

Issue 23494046: some random isolate threading (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « src/mark-compact.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 9874 matching lines...) Expand 10 before | Expand all | Expand 10 after
9885 // non-optimizable if optimization is disabled for the shared 9885 // non-optimizable if optimization is disabled for the shared
9886 // function info. 9886 // function info.
9887 set_optimization_disabled(true); 9887 set_optimization_disabled(true);
9888 set_bailout_reason(reason); 9888 set_bailout_reason(reason);
9889 // Code should be the lazy compilation stub or else unoptimized. If the 9889 // Code should be the lazy compilation stub or else unoptimized. If the
9890 // latter, disable optimization for the code too. 9890 // latter, disable optimization for the code too.
9891 ASSERT(code()->kind() == Code::FUNCTION || code()->kind() == Code::BUILTIN); 9891 ASSERT(code()->kind() == Code::FUNCTION || code()->kind() == Code::BUILTIN);
9892 if (code()->kind() == Code::FUNCTION) { 9892 if (code()->kind() == Code::FUNCTION) {
9893 code()->set_optimizable(false); 9893 code()->set_optimizable(false);
9894 } 9894 }
9895 PROFILE(Isolate::Current(), 9895 PROFILE(GetIsolate(),
9896 LogExistingFunction(Handle<SharedFunctionInfo>(this), 9896 LogExistingFunction(Handle<SharedFunctionInfo>(this),
9897 Handle<Code>(code()))); 9897 Handle<Code>(code())));
9898 if (FLAG_trace_opt) { 9898 if (FLAG_trace_opt) {
9899 PrintF("[disabled optimization for "); 9899 PrintF("[disabled optimization for ");
9900 ShortPrint(); 9900 ShortPrint();
9901 PrintF(", reason: %s]\n", GetBailoutReason(reason)); 9901 PrintF(", reason: %s]\n", GetBailoutReason(reason));
9902 } 9902 }
9903 } 9903 }
9904 9904
9905 9905
(...skipping 6174 matching lines...) Expand 10 before | Expand all | Expand 10 after
16080 #define ERROR_MESSAGES_TEXTS(C, T) T, 16080 #define ERROR_MESSAGES_TEXTS(C, T) T,
16081 static const char* error_messages_[] = { 16081 static const char* error_messages_[] = {
16082 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) 16082 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS)
16083 }; 16083 };
16084 #undef ERROR_MESSAGES_TEXTS 16084 #undef ERROR_MESSAGES_TEXTS
16085 return error_messages_[reason]; 16085 return error_messages_[reason];
16086 } 16086 }
16087 16087
16088 16088
16089 } } // namespace v8::internal 16089 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mark-compact.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698