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

Side by Side Diff: src/codegen.cc

Issue 36833002: Fix bugs in Sodium (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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/objects.cc » ('j') | tools/sodium/sodium.js » ('J')
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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 } 166 }
167 if (print_source) { 167 if (print_source) {
168 PrintF("source_position = %d\n", function->start_position()); 168 PrintF("source_position = %d\n", function->start_position());
169 } 169 }
170 if (info->IsStub()) { 170 if (info->IsStub()) {
171 CodeStub::Major major_key = info->code_stub()->MajorKey(); 171 CodeStub::Major major_key = info->code_stub()->MajorKey();
172 code->Disassemble(CodeStub::MajorName(major_key, false)); 172 code->Disassemble(CodeStub::MajorName(major_key, false));
173 } else { 173 } else {
174 code->Disassemble(*function->debug_name()->ToCString()); 174 code->Disassemble(*function->debug_name()->ToCString());
175 } 175 }
176 PrintF("--- End code ---\n");
177 } 176 }
178 #endif // ENABLE_DISASSEMBLER 177 #endif // ENABLE_DISASSEMBLER
179 } 178 }
180 179
181 180
182 bool CodeGenerator::ShouldGenerateLog(Isolate* isolate, Expression* type) { 181 bool CodeGenerator::ShouldGenerateLog(Isolate* isolate, Expression* type) {
183 ASSERT(type != NULL); 182 ASSERT(type != NULL);
184 if (!isolate->logger()->is_logging() && 183 if (!isolate->logger()->is_logging() &&
185 !isolate->cpu_profiler()->is_profiling()) { 184 !isolate->cpu_profiler()->is_profiling()) {
186 return false; 185 return false;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 ASSERT(result_size_ == 1 || result_size_ == 2); 230 ASSERT(result_size_ == 1 || result_size_ == 2);
232 #ifdef _WIN64 231 #ifdef _WIN64
233 return result | ((result_size_ == 1) ? 0 : 2); 232 return result | ((result_size_ == 1) ? 0 : 2);
234 #else 233 #else
235 return result; 234 return result;
236 #endif 235 #endif
237 } 236 }
238 237
239 238
240 } } // namespace v8::internal 239 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | tools/sodium/sodium.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698