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

Side by Side Diff: src/d8.cc

Issue 16409: Inline array loads in loops directly in the code instead of always... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 years 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
OLDNEW
1 // Copyright 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 evaluation_context_ = Context::New(NULL, global_template); 360 evaluation_context_ = Context::New(NULL, global_template);
361 evaluation_context_->SetSecurityToken(Undefined()); 361 evaluation_context_->SetSecurityToken(Undefined());
362 362
363 // Set the security token of the debug context to allow access. 363 // Set the security token of the debug context to allow access.
364 i::Debug::debug_context()->set_security_token(i::Heap::undefined_value()); 364 i::Debug::debug_context()->set_security_token(i::Heap::undefined_value());
365 } 365 }
366 366
367 367
368 void Shell::OnExit() { 368 void Shell::OnExit() {
369 if (i::FLAG_dump_counters) { 369 if (i::FLAG_dump_counters) {
370 ::printf("+----------------------------------------+----------+\n"); 370 ::printf("+----------------------------------------+-------------+\n");
371 ::printf("| Name | Value |\n"); 371 ::printf("| Name | Value |\n");
Kasper Lund 2008/12/22 09:52:13 Maybe 'Value' should be right justified?
372 ::printf("+----------------------------------------+----------+\n"); 372 ::printf("+----------------------------------------+-------------+\n");
373 for (CounterMap::iterator i = counter_map_.begin(); 373 for (CounterMap::iterator i = counter_map_.begin();
374 i != counter_map_.end(); 374 i != counter_map_.end();
375 i++) { 375 i++) {
376 Counter* counter = (*i).second; 376 Counter* counter = (*i).second;
377 ::printf("| %-38s | %8i |\n", (*i).first, counter->value()); 377 ::printf("| %-38s | %11i |\n", (*i).first, counter->value());
378 } 378 }
379 ::printf("+----------------------------------------+----------+\n"); 379 ::printf("+----------------------------------------+-------------+\n");
380 } 380 }
381 if (counters_file_ != NULL) 381 if (counters_file_ != NULL)
382 delete counters_file_; 382 delete counters_file_;
383 } 383 }
384 384
385 385
386 // Reads a file into a v8 string. 386 // Reads a file into a v8 string.
387 Handle<String> Shell::ReadFile(const char* name) { 387 Handle<String> Shell::ReadFile(const char* name) {
388 FILE* file = i::OS::FOpen(name, "rb"); 388 FILE* file = i::OS::FOpen(name, "rb");
389 if (file == NULL) return Handle<String>(); 389 if (file == NULL) return Handle<String>();
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 return 0; 470 return 0;
471 } 471 }
472 472
473 473
474 } // namespace v8 474 } // namespace v8
475 475
476 476
477 int main(int argc, char* argv[]) { 477 int main(int argc, char* argv[]) {
478 return v8::Shell::Main(argc, argv); 478 return v8::Shell::Main(argc, argv);
479 } 479 }
OLDNEW
« src/codegen-ia32.cc ('K') | « src/codegen-ia32.cc ('k') | src/ic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698