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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 int closure_id = *info()->closure() != *environment->closure() | 425 int closure_id = *info()->closure() != *environment->closure() |
426 ? DefineDeoptimizationLiteral(environment->closure()) | 426 ? DefineDeoptimizationLiteral(environment->closure()) |
427 : Translation::kSelfLiteralId; | 427 : Translation::kSelfLiteralId; |
428 switch (environment->frame_type()) { | 428 switch (environment->frame_type()) { |
429 case JS_FUNCTION: | 429 case JS_FUNCTION: |
430 translation->BeginJSFrame(environment->ast_id(), closure_id, height); | 430 translation->BeginJSFrame(environment->ast_id(), closure_id, height); |
431 break; | 431 break; |
432 case JS_CONSTRUCT: | 432 case JS_CONSTRUCT: |
433 translation->BeginConstructStubFrame(closure_id, translation_size); | 433 translation->BeginConstructStubFrame(closure_id, translation_size); |
434 break; | 434 break; |
| 435 case JS_SETTER: |
| 436 // TODO(svenpanne) Implement me! |
| 437 break; |
435 case ARGUMENTS_ADAPTOR: | 438 case ARGUMENTS_ADAPTOR: |
436 translation->BeginArgumentsAdaptorFrame(closure_id, translation_size); | 439 translation->BeginArgumentsAdaptorFrame(closure_id, translation_size); |
437 break; | 440 break; |
438 default: | |
439 UNREACHABLE(); | |
440 } | 441 } |
441 for (int i = 0; i < translation_size; ++i) { | 442 for (int i = 0; i < translation_size; ++i) { |
442 LOperand* value = environment->values()->at(i); | 443 LOperand* value = environment->values()->at(i); |
443 // spilled_registers_ and spilled_double_registers_ are either | 444 // spilled_registers_ and spilled_double_registers_ are either |
444 // both NULL or both set. | 445 // both NULL or both set. |
445 if (environment->spilled_registers() != NULL && value != NULL) { | 446 if (environment->spilled_registers() != NULL && value != NULL) { |
446 if (value->IsRegister() && | 447 if (value->IsRegister() && |
447 environment->spilled_registers()[value->index()] != NULL) { | 448 environment->spilled_registers()[value->index()] != NULL) { |
448 translation->MarkDuplicate(); | 449 translation->MarkDuplicate(); |
449 AddToTranslation(translation, | 450 AddToTranslation(translation, |
(...skipping 4971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5421 FixedArray::kHeaderSize - kPointerSize)); | 5422 FixedArray::kHeaderSize - kPointerSize)); |
5422 __ bind(&done); | 5423 __ bind(&done); |
5423 } | 5424 } |
5424 | 5425 |
5425 | 5426 |
5426 #undef __ | 5427 #undef __ |
5427 | 5428 |
5428 } } // namespace v8::internal | 5429 } } // namespace v8::internal |
5429 | 5430 |
5430 #endif // V8_TARGET_ARCH_IA32 | 5431 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |