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

Side by Side Diff: src/codegen.cc

Issue 119304: Add log compression ability. (Closed)
Patch Set: Created 11 years, 6 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
« no previous file with comments | « src/code-stubs.cc ('k') | src/compiler.cc » ('j') | src/log.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 295
296 code = MakeCode(node, script_, false); 296 code = MakeCode(node, script_, false);
297 297
298 // Check for stack-overflow exception. 298 // Check for stack-overflow exception.
299 if (code.is_null()) { 299 if (code.is_null()) {
300 SetStackOverflow(); 300 SetStackOverflow();
301 return Handle<JSFunction>::null(); 301 return Handle<JSFunction>::null();
302 } 302 }
303 303
304 // Function compilation complete. 304 // Function compilation complete.
305 LOG(CodeCreateEvent("Function", *code, *node->name())); 305 LOG(CodeCreateEvent(Logger::FUNCTION_TAG, *code, *node->name()));
306 306
307 #ifdef ENABLE_OPROFILE_AGENT 307 #ifdef ENABLE_OPROFILE_AGENT
308 OProfileAgent::CreateNativeCodeRegion(*node->name(), 308 OProfileAgent::CreateNativeCodeRegion(*node->name(),
309 code->address(), 309 code->address(),
310 code->ExecutableSize()); 310 code->ExecutableSize());
311 #endif 311 #endif
312 } 312 }
313 313
314 // Create a boilerplate function. 314 // Create a boilerplate function.
315 Handle<JSFunction> function = 315 Handle<JSFunction> function =
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { 647 void ArgumentsAccessStub::Generate(MacroAssembler* masm) {
648 switch (type_) { 648 switch (type_) {
649 case READ_LENGTH: GenerateReadLength(masm); break; 649 case READ_LENGTH: GenerateReadLength(masm); break;
650 case READ_ELEMENT: GenerateReadElement(masm); break; 650 case READ_ELEMENT: GenerateReadElement(masm); break;
651 case NEW_OBJECT: GenerateNewObject(masm); break; 651 case NEW_OBJECT: GenerateNewObject(masm); break;
652 } 652 }
653 } 653 }
654 654
655 655
656 } } // namespace v8::internal 656 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/compiler.cc » ('j') | src/log.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698