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

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

Issue 212163004: Hide some runtime functions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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/builtins-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 7245 matching lines...) Expand 10 before | Expand all | Expand 10 after
7256 explicit HToFastProperties(HValue* value) : HUnaryOperation(value) { 7256 explicit HToFastProperties(HValue* value) : HUnaryOperation(value) {
7257 set_representation(Representation::Tagged()); 7257 set_representation(Representation::Tagged());
7258 SetChangesFlag(kNewSpacePromotion); 7258 SetChangesFlag(kNewSpacePromotion);
7259 7259
7260 // This instruction is not marked as kChangesMaps, but does 7260 // This instruction is not marked as kChangesMaps, but does
7261 // change the map of the input operand. Use it only when creating 7261 // change the map of the input operand. Use it only when creating
7262 // object literals via a runtime call. 7262 // object literals via a runtime call.
7263 ASSERT(value->IsCallRuntime()); 7263 ASSERT(value->IsCallRuntime());
7264 #ifdef DEBUG 7264 #ifdef DEBUG
7265 const Runtime::Function* function = HCallRuntime::cast(value)->function(); 7265 const Runtime::Function* function = HCallRuntime::cast(value)->function();
7266 ASSERT(function->function_id == Runtime::kCreateObjectLiteral); 7266 ASSERT(function->function_id == Runtime::kHiddenCreateObjectLiteral);
7267 #endif 7267 #endif
7268 } 7268 }
7269 7269
7270 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 7270 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
7271 }; 7271 };
7272 7272
7273 7273
7274 class HDateField V8_FINAL : public HUnaryOperation { 7274 class HDateField V8_FINAL : public HUnaryOperation {
7275 public: 7275 public:
7276 DECLARE_INSTRUCTION_FACTORY_P2(HDateField, HValue*, Smi*); 7276 DECLARE_INSTRUCTION_FACTORY_P2(HDateField, HValue*, Smi*);
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
7519 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 7519 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
7520 }; 7520 };
7521 7521
7522 7522
7523 #undef DECLARE_INSTRUCTION 7523 #undef DECLARE_INSTRUCTION
7524 #undef DECLARE_CONCRETE_INSTRUCTION 7524 #undef DECLARE_CONCRETE_INSTRUCTION
7525 7525
7526 } } // namespace v8::internal 7526 } } // namespace v8::internal
7527 7527
7528 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7528 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698