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/mirror-delay.js

Issue 151018: Optimize %ClassOf() on IA-32 and use it instead of the... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 5 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/macros.py ('k') | src/runtime.h » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 * @constructor 573 * @constructor
574 * @extends ValueMirror 574 * @extends ValueMirror
575 */ 575 */
576 function ObjectMirror(value, type, transient) { 576 function ObjectMirror(value, type, transient) {
577 ValueMirror.call(this, type || OBJECT_TYPE, value, transient); 577 ValueMirror.call(this, type || OBJECT_TYPE, value, transient);
578 } 578 }
579 inherits(ObjectMirror, ValueMirror); 579 inherits(ObjectMirror, ValueMirror);
580 580
581 581
582 ObjectMirror.prototype.className = function() { 582 ObjectMirror.prototype.className = function() {
583 return %ClassOf(this.value_); 583 return %_ClassOf(this.value_);
584 }; 584 };
585 585
586 586
587 ObjectMirror.prototype.constructorFunction = function() { 587 ObjectMirror.prototype.constructorFunction = function() {
588 return MakeMirror(%DebugGetProperty(this.value_, 'constructor')); 588 return MakeMirror(%DebugGetProperty(this.value_, 'constructor'));
589 }; 589 };
590 590
591 591
592 ObjectMirror.prototype.prototypeObject = function() { 592 ObjectMirror.prototype.prototypeObject = function() {
593 return MakeMirror(%DebugGetProperty(this.value_, 'prototype')); 593 return MakeMirror(%DebugGetProperty(this.value_, 'prototype'));
(...skipping 1675 matching lines...) Expand 10 before | Expand all | Expand 10 after
2269 } 2269 }
2270 if (!isFinite(value)) { 2270 if (!isFinite(value)) {
2271 if (value > 0) { 2271 if (value > 0) {
2272 return 'Infinity'; 2272 return 'Infinity';
2273 } else { 2273 } else {
2274 return '-Infinity'; 2274 return '-Infinity';
2275 } 2275 }
2276 } 2276 }
2277 return value; 2277 return value;
2278 } 2278 }
OLDNEW
« no previous file with comments | « src/macros.py ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698