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

Side by Side Diff: src/x64/full-codegen-x64.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/x64/codegen-x64.h ('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 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 3225 matching lines...) Expand 10 before | Expand all | Expand 10 after
3236 void FullCodeGenerator::EmitLog(CallRuntime* expr) { 3236 void FullCodeGenerator::EmitLog(CallRuntime* expr) {
3237 // Conditionally generate a log call. 3237 // Conditionally generate a log call.
3238 // Args: 3238 // Args:
3239 // 0 (literal string): The type of logging (corresponds to the flags). 3239 // 0 (literal string): The type of logging (corresponds to the flags).
3240 // This is used to determine whether or not to generate the log call. 3240 // This is used to determine whether or not to generate the log call.
3241 // 1 (string): Format string. Access the string at argument index 2 3241 // 1 (string): Format string. Access the string at argument index 2
3242 // with '%2s' (see Logger::LogRuntime for all the formats). 3242 // with '%2s' (see Logger::LogRuntime for all the formats).
3243 // 2 (array): Arguments to the format string. 3243 // 2 (array): Arguments to the format string.
3244 ZoneList<Expression*>* args = expr->arguments(); 3244 ZoneList<Expression*>* args = expr->arguments();
3245 ASSERT_EQ(args->length(), 3); 3245 ASSERT_EQ(args->length(), 3);
3246 if (CodeGenerator::ShouldGenerateLog(args->at(0))) { 3246 if (CodeGenerator::ShouldGenerateLog(isolate(), args->at(0))) {
3247 VisitForStackValue(args->at(1)); 3247 VisitForStackValue(args->at(1));
3248 VisitForStackValue(args->at(2)); 3248 VisitForStackValue(args->at(2));
3249 __ CallRuntime(Runtime::kLog, 2); 3249 __ CallRuntime(Runtime::kLog, 2);
3250 } 3250 }
3251 // Finally, we're expected to leave a value on the top of the stack. 3251 // Finally, we're expected to leave a value on the top of the stack.
3252 __ LoadRoot(rax, Heap::kUndefinedValueRootIndex); 3252 __ LoadRoot(rax, Heap::kUndefinedValueRootIndex);
3253 context()->Plug(rax); 3253 context()->Plug(rax);
3254 } 3254 }
3255 3255
3256 3256
(...skipping 1619 matching lines...) Expand 10 before | Expand all | Expand 10 after
4876 *context_length = 0; 4876 *context_length = 0;
4877 return previous_; 4877 return previous_;
4878 } 4878 }
4879 4879
4880 4880
4881 #undef __ 4881 #undef __
4882 4882
4883 } } // namespace v8::internal 4883 } } // namespace v8::internal
4884 4884
4885 #endif // V8_TARGET_ARCH_X64 4885 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/codegen-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698