| OLD | NEW |
| 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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 ? DefineDeoptimizationLiteral(environment->closure()) | 454 ? DefineDeoptimizationLiteral(environment->closure()) |
| 455 : Translation::kSelfLiteralId; | 455 : Translation::kSelfLiteralId; |
| 456 | 456 |
| 457 switch (environment->frame_type()) { | 457 switch (environment->frame_type()) { |
| 458 case JS_FUNCTION: | 458 case JS_FUNCTION: |
| 459 translation->BeginJSFrame(environment->ast_id(), closure_id, height); | 459 translation->BeginJSFrame(environment->ast_id(), closure_id, height); |
| 460 break; | 460 break; |
| 461 case JS_CONSTRUCT: | 461 case JS_CONSTRUCT: |
| 462 translation->BeginConstructStubFrame(closure_id, translation_size); | 462 translation->BeginConstructStubFrame(closure_id, translation_size); |
| 463 break; | 463 break; |
| 464 case JS_SETTER: |
| 465 // TODO(svenpanne) Implement me! |
| 466 break; |
| 464 case ARGUMENTS_ADAPTOR: | 467 case ARGUMENTS_ADAPTOR: |
| 465 translation->BeginArgumentsAdaptorFrame(closure_id, translation_size); | 468 translation->BeginArgumentsAdaptorFrame(closure_id, translation_size); |
| 466 break; | 469 break; |
| 467 default: | |
| 468 UNREACHABLE(); | |
| 469 } | 470 } |
| 470 for (int i = 0; i < translation_size; ++i) { | 471 for (int i = 0; i < translation_size; ++i) { |
| 471 LOperand* value = environment->values()->at(i); | 472 LOperand* value = environment->values()->at(i); |
| 472 // spilled_registers_ and spilled_double_registers_ are either | 473 // spilled_registers_ and spilled_double_registers_ are either |
| 473 // both NULL or both set. | 474 // both NULL or both set. |
| 474 if (environment->spilled_registers() != NULL && value != NULL) { | 475 if (environment->spilled_registers() != NULL && value != NULL) { |
| 475 if (value->IsRegister() && | 476 if (value->IsRegister() && |
| 476 environment->spilled_registers()[value->index()] != NULL) { | 477 environment->spilled_registers()[value->index()] != NULL) { |
| 477 translation->MarkDuplicate(); | 478 translation->MarkDuplicate(); |
| 478 AddToTranslation(translation, | 479 AddToTranslation(translation, |
| (...skipping 4848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5327 __ Subu(scratch, result, scratch); | 5328 __ Subu(scratch, result, scratch); |
| 5328 __ lw(result, FieldMemOperand(scratch, | 5329 __ lw(result, FieldMemOperand(scratch, |
| 5329 FixedArray::kHeaderSize - kPointerSize)); | 5330 FixedArray::kHeaderSize - kPointerSize)); |
| 5330 __ bind(&done); | 5331 __ bind(&done); |
| 5331 } | 5332 } |
| 5332 | 5333 |
| 5333 | 5334 |
| 5334 #undef __ | 5335 #undef __ |
| 5335 | 5336 |
| 5336 } } // namespace v8::internal | 5337 } } // namespace v8::internal |
| OLD | NEW |