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

Side by Side Diff: src/ia32/deoptimizer-ia32.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/heap.cc ('k') | src/mips/deoptimizer-mips.cc » ('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 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 JSFunction* function) { 118 JSFunction* function) {
119 Isolate* isolate = function->GetIsolate(); 119 Isolate* isolate = function->GetIsolate();
120 HandleScope scope(isolate); 120 HandleScope scope(isolate);
121 AssertNoAllocation no_allocation; 121 AssertNoAllocation no_allocation;
122 122
123 ASSERT(function->IsOptimized()); 123 ASSERT(function->IsOptimized());
124 ASSERT(function->FunctionsInFunctionListShareSameCode()); 124 ASSERT(function->FunctionsInFunctionListShareSameCode());
125 125
126 // The optimized code is going to be patched, so we cannot use it 126 // The optimized code is going to be patched, so we cannot use it
127 // any more. Play safe and reset the whole cache. 127 // any more. Play safe and reset the whole cache.
128 function->shared()->ClearOptimizedCodeMap(); 128 function->shared()->ClearOptimizedCodeMap("deoptimized function");
129 129
130 // Get the optimized code. 130 // Get the optimized code.
131 Code* code = function->code(); 131 Code* code = function->code();
132 Address code_start_address = code->instruction_start(); 132 Address code_start_address = code->instruction_start();
133 133
134 // We will overwrite the code's relocation info in-place. Relocation info 134 // We will overwrite the code's relocation info in-place. Relocation info
135 // is written backward. The relocation info is the payload of a byte 135 // is written backward. The relocation info is the payload of a byte
136 // array. Later on we will slide this to the start of the byte array and 136 // array. Later on we will slide this to the start of the byte array and
137 // create a filler object in the remaining space. 137 // create a filler object in the remaining space.
138 ByteArray* reloc_info = code->relocation_info(); 138 ByteArray* reloc_info = code->relocation_info();
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 } 921 }
922 __ bind(&done); 922 __ bind(&done);
923 } 923 }
924 924
925 #undef __ 925 #undef __
926 926
927 927
928 } } // namespace v8::internal 928 } } // namespace v8::internal
929 929
930 #endif // V8_TARGET_ARCH_IA32 930 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/mips/deoptimizer-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698