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

Side by Side Diff: src/hydrogen-instructions.h

Issue 10910110: Fixed deoptimization of inlined getters. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 3 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/hydrogen.cc ('k') | src/ia32/deoptimizer-ia32.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 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 1397 matching lines...) Expand 10 before | Expand all | Expand 10 after
1408 1408
1409 private: 1409 private:
1410 Type type_; 1410 Type type_;
1411 }; 1411 };
1412 1412
1413 1413
1414 enum InliningKind { 1414 enum InliningKind {
1415 NORMAL_RETURN, // Normal function/method call and return. 1415 NORMAL_RETURN, // Normal function/method call and return.
1416 DROP_EXTRA_ON_RETURN, // Drop an extra value from the environment on return. 1416 DROP_EXTRA_ON_RETURN, // Drop an extra value from the environment on return.
1417 CONSTRUCT_CALL_RETURN, // Either use allocated receiver or return value. 1417 CONSTRUCT_CALL_RETURN, // Either use allocated receiver or return value.
1418 GETTER_CALL_RETURN, // Returning from a getter, need to restore context.
1418 SETTER_CALL_RETURN // Use the RHS of the assignment as the return value. 1419 SETTER_CALL_RETURN // Use the RHS of the assignment as the return value.
1419 }; 1420 };
1420 1421
1421 1422
1422 class HEnterInlined: public HTemplateInstruction<0> { 1423 class HEnterInlined: public HTemplateInstruction<0> {
1423 public: 1424 public:
1424 HEnterInlined(Handle<JSFunction> closure, 1425 HEnterInlined(Handle<JSFunction> closure,
1425 int arguments_count, 1426 int arguments_count,
1426 FunctionLiteral* function, 1427 FunctionLiteral* function,
1427 CallKind call_kind, 1428 CallKind call_kind,
(...skipping 3856 matching lines...) Expand 10 before | Expand all | Expand 10 after
5284 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); 5285 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex);
5285 }; 5286 };
5286 5287
5287 5288
5288 #undef DECLARE_INSTRUCTION 5289 #undef DECLARE_INSTRUCTION
5289 #undef DECLARE_CONCRETE_INSTRUCTION 5290 #undef DECLARE_CONCRETE_INSTRUCTION
5290 5291
5291 } } // namespace v8::internal 5292 } } // namespace v8::internal
5292 5293
5293 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 5294 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/deoptimizer-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698