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

Side by Side Diff: src/ia32/full-codegen-ia32.cc

Issue 8492004: Fix lazy deoptimization at HInvokeFunction and enable target-recording call-function stub. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: fixed missing deopt index on ARM. Created 9 years, 1 month 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 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 2080 matching lines...) Expand 10 before | Expand all | Expand 10 after
2091 int arg_count = args->length(); 2091 int arg_count = args->length();
2092 { PreservePositionScope scope(masm()->positions_recorder()); 2092 { PreservePositionScope scope(masm()->positions_recorder());
2093 for (int i = 0; i < arg_count; i++) { 2093 for (int i = 0; i < arg_count; i++) {
2094 VisitForStackValue(args->at(i)); 2094 VisitForStackValue(args->at(i));
2095 } 2095 }
2096 } 2096 }
2097 // Record source position for debugger. 2097 // Record source position for debugger.
2098 SetSourcePosition(expr->position()); 2098 SetSourcePosition(expr->position());
2099 2099
2100 // Record call targets in unoptimized code, but not in the snapshot. 2100 // Record call targets in unoptimized code, but not in the snapshot.
2101 // TODO(1789): Reenable temporarily disabled recording CallFunctionStub 2101 bool record_call_target = !Serializer::enabled();
2102 // when the issue is fixed.
2103 bool record_call_target = false && !Serializer::enabled();
2104 if (record_call_target) { 2102 if (record_call_target) {
2105 flags = static_cast<CallFunctionFlags>(flags | RECORD_CALL_TARGET); 2103 flags = static_cast<CallFunctionFlags>(flags | RECORD_CALL_TARGET);
2106 } 2104 }
2107 CallFunctionStub stub(arg_count, flags); 2105 CallFunctionStub stub(arg_count, flags);
2108 __ CallStub(&stub, expr->id()); 2106 __ CallStub(&stub, expr->id());
2109 if (record_call_target) { 2107 if (record_call_target) {
2110 // There is a one element cache in the instruction stream. 2108 // There is a one element cache in the instruction stream.
2111 #ifdef DEBUG 2109 #ifdef DEBUG
2112 int return_site_offset = masm()->pc_offset(); 2110 int return_site_offset = masm()->pc_offset();
2113 #endif 2111 #endif
(...skipping 2212 matching lines...) Expand 10 before | Expand all | Expand 10 after
4326 *context_length = 0; 4324 *context_length = 0;
4327 return previous_; 4325 return previous_;
4328 } 4326 }
4329 4327
4330 4328
4331 #undef __ 4329 #undef __
4332 4330
4333 } } // namespace v8::internal 4331 } } // namespace v8::internal
4334 4332
4335 #endif // V8_TARGET_ARCH_IA32 4333 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698