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 5894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5905 object.Unuse(); | 5905 object.Unuse(); |
5906 scratch.Unuse(); | 5906 scratch.Unuse(); |
5907 duplicate_value.Unuse(); | 5907 duplicate_value.Unuse(); |
5908 | 5908 |
5909 // Leave. | 5909 // Leave. |
5910 leave.Bind(&value); | 5910 leave.Bind(&value); |
5911 frame_->Push(&value); | 5911 frame_->Push(&value); |
5912 } | 5912 } |
5913 | 5913 |
5914 | 5914 |
5915 void CodeGenerator::GenerateArgumentsAccess(ZoneList<Expression*>* args) { | 5915 void CodeGenerator::GenerateArguments(ZoneList<Expression*>* args) { |
5916 ASSERT(args->length() == 1); | 5916 ASSERT(args->length() == 1); |
5917 | 5917 |
5918 // ArgumentsAccessStub expects the key in edx and the formal | 5918 // ArgumentsAccessStub expects the key in edx and the formal |
5919 // parameter count in eax. | 5919 // parameter count in eax. |
5920 Load(args->at(0)); | 5920 Load(args->at(0)); |
5921 Result key = frame_->Pop(); | 5921 Result key = frame_->Pop(); |
5922 // Explicitly create a constant result. | 5922 // Explicitly create a constant result. |
5923 Result count(Handle<Smi>(Smi::FromInt(scope()->num_parameters()))); | 5923 Result count(Handle<Smi>(Smi::FromInt(scope()->num_parameters()))); |
5924 // Call the shared stub to get to arguments[key]. | 5924 // Call the shared stub to get to arguments[key]. |
5925 ArgumentsAccessStub stub(ArgumentsAccessStub::READ_ELEMENT); | 5925 ArgumentsAccessStub stub(ArgumentsAccessStub::READ_ELEMENT); |
(...skipping 5827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11753 | 11753 |
11754 // Call the runtime; it returns -1 (less), 0 (equal), or 1 (greater) | 11754 // Call the runtime; it returns -1 (less), 0 (equal), or 1 (greater) |
11755 // tagged as a small integer. | 11755 // tagged as a small integer. |
11756 __ bind(&runtime); | 11756 __ bind(&runtime); |
11757 __ TailCallRuntime(Runtime::kStringCompare, 2, 1); | 11757 __ TailCallRuntime(Runtime::kStringCompare, 2, 1); |
11758 } | 11758 } |
11759 | 11759 |
11760 #undef __ | 11760 #undef __ |
11761 | 11761 |
11762 } } // namespace v8::internal | 11762 } } // namespace v8::internal |
OLD | NEW |