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

Side by Side Diff: src/deoptimizer.cc

Issue 28993003: Make stack_parameter_count a plain register. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Simplify Deoptimizer::SetPlatformCompiledStubRegisters. Created 7 years, 2 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/code-stubs-hydrogen.cc ('k') | src/ia32/code-stubs-ia32.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 1476 matching lines...) Expand 10 before | Expand all | Expand 10 after
1487 value = reinterpret_cast<intptr_t>( 1487 value = reinterpret_cast<intptr_t>(
1488 Smi::FromInt(StackFrame::STUB_FAILURE_TRAMPOLINE)); 1488 Smi::FromInt(StackFrame::STUB_FAILURE_TRAMPOLINE));
1489 output_frame->SetFrameSlot(output_frame_offset, value); 1489 output_frame->SetFrameSlot(output_frame_offset, value);
1490 if (trace_) { 1490 if (trace_) {
1491 PrintF(" 0x%08" V8PRIxPTR ": [top + %d] <- 0x%08" 1491 PrintF(" 0x%08" V8PRIxPTR ": [top + %d] <- 0x%08"
1492 V8PRIxPTR " ; function (stub failure sentinel)\n", 1492 V8PRIxPTR " ; function (stub failure sentinel)\n",
1493 top_address + output_frame_offset, output_frame_offset, value); 1493 top_address + output_frame_offset, output_frame_offset, value);
1494 } 1494 }
1495 1495
1496 intptr_t caller_arg_count = 0; 1496 intptr_t caller_arg_count = 0;
1497 bool arg_count_known = descriptor->stack_parameter_count_ == NULL; 1497 bool arg_count_known = !descriptor->stack_parameter_count_.is_valid();
1498 1498
1499 // Build the Arguments object for the caller's parameters and a pointer to it. 1499 // Build the Arguments object for the caller's parameters and a pointer to it.
1500 output_frame_offset -= kPointerSize; 1500 output_frame_offset -= kPointerSize;
1501 int args_arguments_offset = output_frame_offset; 1501 int args_arguments_offset = output_frame_offset;
1502 intptr_t the_hole = reinterpret_cast<intptr_t>( 1502 intptr_t the_hole = reinterpret_cast<intptr_t>(
1503 isolate_->heap()->the_hole_value()); 1503 isolate_->heap()->the_hole_value());
1504 if (arg_count_known) { 1504 if (arg_count_known) {
1505 value = frame_ptr + StandardFrameConstants::kCallerSPOffset + 1505 value = frame_ptr + StandardFrameConstants::kCallerSPOffset +
1506 (caller_arg_count - 1) * kPointerSize; 1506 (caller_arg_count - 1) * kPointerSize;
1507 } else { 1507 } else {
(...skipping 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after
2945 2945
2946 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) { 2946 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) {
2947 v->VisitPointer(BitCast<Object**>(&function_)); 2947 v->VisitPointer(BitCast<Object**>(&function_));
2948 v->VisitPointers(parameters_, parameters_ + parameters_count_); 2948 v->VisitPointers(parameters_, parameters_ + parameters_count_);
2949 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_); 2949 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_);
2950 } 2950 }
2951 2951
2952 #endif // ENABLE_DEBUGGER_SUPPORT 2952 #endif // ENABLE_DEBUGGER_SUPPORT
2953 2953
2954 } } // namespace v8::internal 2954 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698