Changeset 138669 in webkit for trunk/Source/JavaScriptCore/bytecode/CodeOrigin.h
- Timestamp:
- Jan 2, 2013, 3:54:42 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/CodeOrigin.h
r136601 r138669 1 1 /* 2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved.2 * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 84 84 ExecutableBase* codeOriginOwner() const; 85 85 86 unsigned stackOffset() const; 87 86 88 static unsigned inlineDepthForCallFrame(InlineCallFrame*); 87 89 … … 99 101 Vector<ValueRecovery> arguments; 100 102 WriteBarrier<ExecutableBase> executable; 101 WriteBarrier<JSFunction> callee; 103 WriteBarrier<JSFunction> callee; // This may be null, indicating that this is a closure call and that the JSFunction and JSScope are already on the stack. 102 104 CodeOrigin caller; 103 105 BitVector capturedVars; // Indexed by the machine call frame's variable numbering. … … 106 108 107 109 CodeSpecializationKind specializationKind() const { return specializationFromIsCall(isCall); } 110 111 bool isClosureCall() const { return !callee; } 108 112 109 113 CodeBlockHash hash() const; … … 118 122 unsigned callReturnOffset; 119 123 }; 124 125 inline unsigned CodeOrigin::stackOffset() const 126 { 127 if (!inlineCallFrame) 128 return 0; 129 130 return inlineCallFrame->stackOffset; 131 } 120 132 121 133 inline bool CodeOrigin::operator==(const CodeOrigin& other) const
Note:
See TracChangeset
for help on using the changeset viewer.