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

Side by Side Diff: src/mips/deoptimizer-mips.cc

Issue 14978003: Improve trace_opt output to help find compilation problems (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Platform ports Created 7 years, 7 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/deoptimizer-ia32.cc ('k') | src/objects.h » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 JSFunction* function) { 46 JSFunction* function) {
47 Isolate* isolate = function->GetIsolate(); 47 Isolate* isolate = function->GetIsolate();
48 HandleScope scope(isolate); 48 HandleScope scope(isolate);
49 AssertNoAllocation no_allocation; 49 AssertNoAllocation no_allocation;
50 50
51 ASSERT(function->IsOptimized()); 51 ASSERT(function->IsOptimized());
52 ASSERT(function->FunctionsInFunctionListShareSameCode()); 52 ASSERT(function->FunctionsInFunctionListShareSameCode());
53 53
54 // The optimized code is going to be patched, so we cannot use it 54 // The optimized code is going to be patched, so we cannot use it
55 // any more. Play safe and reset the whole cache. 55 // any more. Play safe and reset the whole cache.
56 function->shared()->ClearOptimizedCodeMap(); 56 function->shared()->ClearOptimizedCodeMap("deoptimized function");
57 57
58 // Get the optimized code. 58 // Get the optimized code.
59 Code* code = function->code(); 59 Code* code = function->code();
60 Address code_start_address = code->instruction_start(); 60 Address code_start_address = code->instruction_start();
61 61
62 // Invalidate the relocation information, as it will become invalid by the 62 // Invalidate the relocation information, as it will become invalid by the
63 // code patching below, and is not needed any more. 63 // code patching below, and is not needed any more.
64 code->InvalidateRelocation(); 64 code->InvalidateRelocation();
65 65
66 // For each LLazyBailout instruction insert a call to the corresponding 66 // For each LLazyBailout instruction insert a call to the corresponding
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 } 833 }
834 834
835 ASSERT_EQ(masm()->SizeOfCodeGeneratedSince(&table_start), 835 ASSERT_EQ(masm()->SizeOfCodeGeneratedSince(&table_start),
836 count() * table_entry_size_); 836 count() * table_entry_size_);
837 } 837 }
838 838
839 #undef __ 839 #undef __
840 840
841 841
842 } } // namespace v8::internal 842 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/deoptimizer-ia32.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698