OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 3053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3064 Load(node->expression()); | 3064 Load(node->expression()); |
3065 switch (op) { | 3065 switch (op) { |
3066 case Token::NOT: | 3066 case Token::NOT: |
3067 case Token::DELETE: | 3067 case Token::DELETE: |
3068 case Token::TYPEOF: | 3068 case Token::TYPEOF: |
3069 UNREACHABLE(); // handled above | 3069 UNREACHABLE(); // handled above |
3070 break; | 3070 break; |
3071 | 3071 |
3072 case Token::SUB: { | 3072 case Token::SUB: { |
3073 GenericUnaryOpStub stub(Token::SUB, overwrite); | 3073 GenericUnaryOpStub stub(Token::SUB, overwrite); |
3074 // TODO(1222589): remove dependency of TOS being cached inside stub | |
3075 Result operand = frame_->Pop(); | 3074 Result operand = frame_->Pop(); |
3076 Result answer = frame_->CallStub(&stub, &operand); | 3075 Result answer = frame_->CallStub(&stub, &operand); |
3077 frame_->Push(&answer); | 3076 frame_->Push(&answer); |
3078 break; | 3077 break; |
3079 } | 3078 } |
3080 | 3079 |
3081 case Token::BIT_NOT: { | 3080 case Token::BIT_NOT: { |
3082 // Smi check. | 3081 // Smi check. |
3083 JumpTarget smi_label; | 3082 JumpTarget smi_label; |
3084 JumpTarget continue_label; | 3083 JumpTarget continue_label; |
(...skipping 6390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9475 // Call the function from C++. | 9474 // Call the function from C++. |
9476 return FUNCTION_CAST<ModuloFunction>(buffer); | 9475 return FUNCTION_CAST<ModuloFunction>(buffer); |
9477 } | 9476 } |
9478 | 9477 |
9479 #endif | 9478 #endif |
9480 | 9479 |
9481 | 9480 |
9482 #undef __ | 9481 #undef __ |
9483 | 9482 |
9484 } } // namespace v8::internal | 9483 } } // namespace v8::internal |
OLD | NEW |