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

Side by Side Diff: src/x64/lithium-x64.h

Issue 6541069: X64 Crankshaft: Implement CallKeyed in optimizing compiler. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 10 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/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1277 matching lines...) Expand 10 before | Expand all | Expand 10 after
1288 1288
1289 class LCallKeyed: public LTemplateInstruction<1, 1, 0> { 1289 class LCallKeyed: public LTemplateInstruction<1, 1, 0> {
1290 public: 1290 public:
1291 explicit LCallKeyed(LOperand* key) { 1291 explicit LCallKeyed(LOperand* key) {
1292 inputs_[0] = key; 1292 inputs_[0] = key;
1293 } 1293 }
1294 1294
1295 DECLARE_CONCRETE_INSTRUCTION(CallKeyed, "call-keyed") 1295 DECLARE_CONCRETE_INSTRUCTION(CallKeyed, "call-keyed")
1296 DECLARE_HYDROGEN_ACCESSOR(CallKeyed) 1296 DECLARE_HYDROGEN_ACCESSOR(CallKeyed)
1297 1297
1298 LOperand* key() { return inputs_[0]; }
1299
1298 virtual void PrintDataTo(StringStream* stream); 1300 virtual void PrintDataTo(StringStream* stream);
1299 1301
1300 int arity() const { return hydrogen()->argument_count() - 1; } 1302 int arity() const { return hydrogen()->argument_count() - 1; }
1301 }; 1303 };
1302 1304
1303 1305
1304 class LCallNamed: public LTemplateInstruction<1, 0, 0> { 1306 class LCallNamed: public LTemplateInstruction<1, 0, 0> {
1305 public: 1307 public:
1306 DECLARE_CONCRETE_INSTRUCTION(CallNamed, "call-named") 1308 DECLARE_CONCRETE_INSTRUCTION(CallNamed, "call-named")
1307 DECLARE_HYDROGEN_ACCESSOR(CallNamed) 1309 DECLARE_HYDROGEN_ACCESSOR(CallNamed)
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
2013 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2015 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2014 }; 2016 };
2015 2017
2016 #undef DECLARE_HYDROGEN_ACCESSOR 2018 #undef DECLARE_HYDROGEN_ACCESSOR
2017 #undef DECLARE_INSTRUCTION 2019 #undef DECLARE_INSTRUCTION
2018 #undef DECLARE_CONCRETE_INSTRUCTION 2020 #undef DECLARE_CONCRETE_INSTRUCTION
2019 2021
2020 } } // namespace v8::int 2022 } } // namespace v8::int
2021 2023
2022 #endif // V8_X64_LITHIUM_X64_H_ 2024 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698