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

Side by Side Diff: src/full-codegen.h

Issue 159903008: Fix assignment of function name constant. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: changed test Created 6 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/arm/full-codegen-arm.cc ('k') | src/ia32/full-codegen-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 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 551
552 // Assign to the given expression as if via '='. The right-hand-side value 552 // Assign to the given expression as if via '='. The right-hand-side value
553 // is expected in the accumulator. 553 // is expected in the accumulator.
554 void EmitAssignment(Expression* expr); 554 void EmitAssignment(Expression* expr);
555 555
556 // Complete a variable assignment. The right-hand-side value is expected 556 // Complete a variable assignment. The right-hand-side value is expected
557 // in the accumulator. 557 // in the accumulator.
558 void EmitVariableAssignment(Variable* var, 558 void EmitVariableAssignment(Variable* var,
559 Token::Value op); 559 Token::Value op);
560 560
561 // Helper functions to EmitVariableAssignment
562 void EmitStoreToStackLocalOrContextSlot(Variable* var,
563 MemOperand location);
564 void EmitCallStoreContextSlot(Handle<String> name, LanguageMode mode);
565
561 // Complete a named property assignment. The receiver is expected on top 566 // Complete a named property assignment. The receiver is expected on top
562 // of the stack and the right-hand-side value in the accumulator. 567 // of the stack and the right-hand-side value in the accumulator.
563 void EmitNamedPropertyAssignment(Assignment* expr); 568 void EmitNamedPropertyAssignment(Assignment* expr);
564 569
565 // Complete a keyed property assignment. The receiver and key are 570 // Complete a keyed property assignment. The receiver and key are
566 // expected on top of the stack and the right-hand-side value in the 571 // expected on top of the stack and the right-hand-side value in the
567 // accumulator. 572 // accumulator.
568 void EmitKeyedPropertyAssignment(Assignment* expr); 573 void EmitKeyedPropertyAssignment(Assignment* expr);
569 574
570 void CallIC(Handle<Code> code, 575 void CallIC(Handle<Code> code,
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 965
961 Address start_; 966 Address start_;
962 Address instruction_start_; 967 Address instruction_start_;
963 uint32_t length_; 968 uint32_t length_;
964 }; 969 };
965 970
966 971
967 } } // namespace v8::internal 972 } } // namespace v8::internal
968 973
969 #endif // V8_FULL_CODEGEN_H_ 974 #endif // V8_FULL_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698