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/ia32/full-codegen-ia32.cc

Issue 23729006: thread isolate for files starting with 'b' and 'c' (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: remaining arches 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/ia32/codegen-ia32.h ('k') | src/isolate.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 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 3248 matching lines...) Expand 10 before | Expand all | Expand 10 after
3259 void FullCodeGenerator::EmitLog(CallRuntime* expr) { 3259 void FullCodeGenerator::EmitLog(CallRuntime* expr) {
3260 // Conditionally generate a log call. 3260 // Conditionally generate a log call.
3261 // Args: 3261 // Args:
3262 // 0 (literal string): The type of logging (corresponds to the flags). 3262 // 0 (literal string): The type of logging (corresponds to the flags).
3263 // This is used to determine whether or not to generate the log call. 3263 // This is used to determine whether or not to generate the log call.
3264 // 1 (string): Format string. Access the string at argument index 2 3264 // 1 (string): Format string. Access the string at argument index 2
3265 // with '%2s' (see Logger::LogRuntime for all the formats). 3265 // with '%2s' (see Logger::LogRuntime for all the formats).
3266 // 2 (array): Arguments to the format string. 3266 // 2 (array): Arguments to the format string.
3267 ZoneList<Expression*>* args = expr->arguments(); 3267 ZoneList<Expression*>* args = expr->arguments();
3268 ASSERT_EQ(args->length(), 3); 3268 ASSERT_EQ(args->length(), 3);
3269 if (CodeGenerator::ShouldGenerateLog(args->at(0))) { 3269 if (CodeGenerator::ShouldGenerateLog(isolate(), args->at(0))) {
3270 VisitForStackValue(args->at(1)); 3270 VisitForStackValue(args->at(1));
3271 VisitForStackValue(args->at(2)); 3271 VisitForStackValue(args->at(2));
3272 __ CallRuntime(Runtime::kLog, 2); 3272 __ CallRuntime(Runtime::kLog, 2);
3273 } 3273 }
3274 // Finally, we're expected to leave a value on the top of the stack. 3274 // Finally, we're expected to leave a value on the top of the stack.
3275 __ mov(eax, isolate()->factory()->undefined_value()); 3275 __ mov(eax, isolate()->factory()->undefined_value());
3276 context()->Plug(eax); 3276 context()->Plug(eax);
3277 } 3277 }
3278 3278
3279 3279
(...skipping 1608 matching lines...) Expand 10 before | Expand all | Expand 10 after
4888 *stack_depth = 0; 4888 *stack_depth = 0;
4889 *context_length = 0; 4889 *context_length = 0;
4890 return previous_; 4890 return previous_;
4891 } 4891 }
4892 4892
4893 #undef __ 4893 #undef __
4894 4894
4895 } } // namespace v8::internal 4895 } } // namespace v8::internal
4896 4896
4897 #endif // V8_TARGET_ARCH_IA32 4897 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/codegen-ia32.h ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698